##// END OF EJS Templates
tests: use same popen strategy for jython as for nt
Frank Wierzbicki -
r7792:cf427b04 default
parent child Browse files
Show More
@@ -273,7 +273,7 b' def run(cmd):'
273 """Run command in a sub-process, capturing the output (stdout and stderr).
273 """Run command in a sub-process, capturing the output (stdout and stderr).
274 Return the exist code, and output."""
274 Return the exist code, and output."""
275 # TODO: Use subprocess.Popen if we're running on Python 2.4
275 # TODO: Use subprocess.Popen if we're running on Python 2.4
276 if os.name == 'nt':
276 if os.name == 'nt' or sys.platform.startswith('java'):
277 tochild, fromchild = os.popen4(cmd)
277 tochild, fromchild = os.popen4(cmd)
278 tochild.close()
278 tochild.close()
279 output = fromchild.read()
279 output = fromchild.read()
General Comments 0
You need to be logged in to leave comments. Login now