Author vitaly
Recipients vitaly
Date 2012-09-28.01:17:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
1. Make sure jython 2.5.3 is the default jython on the system (shows up first in PATH);
2. Run the attached file as:

python all

Expected: all tests complete successfully and the test app exits normally.

Actual: the test app hangs when jython 2.5.3 is the default jython (the python test app starts jython as a supbrocess; see details below); however, this test works fine when jython 2.5.2 is the default jython on the system.


The python script (executed via python)  uses subprocess.Popen() to execute this jython command-line: 

["jython", "-c", "import sys; sys.stdout.write(sys.stdin.readline()); sys.stdout.flush();"].

This jython process reads a line from stdin, writes it to stdout, then exits.

Each test in the parent process ( then writes a newline-terminated line to the jython subprocess's stdin, flushes the subprocess's stdin, attempts to read a line from the subprocess's stdout, closes the subprocess's stdin, waits for the suprocess to finish, and then returns.  The test hangs with jython 2.5.3, but works fine with jython 2.5.2

If I replace the jython subprocess command line in the test script with (python instead of jython): ["python", "-c", "import sys; sys.stdout.write(sys.stdin.readline()); sys.stdout.flush();"]

then it works fine, too.  It also works fine if the subprocess command is: ["cat"] (unix catenate command)

My System info:
System Version:	Mac OS X 10.7.5 (11G56)
Kernel Version:	Darwin 11.4.2
Jython 2.5.3
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
Python 2.6.7
Date User Action Args
2012-09-28 01:17:24vitalysetrecipients: + vitaly
2012-09-28 01:17:23vitalysetmessageid: <>
2012-09-28 01:17:23vitalylinkissue1972 messages
2012-09-28 01:17:23vitalycreate