# HG changeset patch # User Frank Wierzbicki # Date 1234959570 -3600 # Node ID cf427b04d5c0fde0f2b745586c1693f831543bce # Parent 089cb73f8ecc02d32bf9ccc366dfa43ff01cf151 tests: use same popen strategy for jython as for nt diff -r 089cb73f8ecc -r cf427b04d5c0 tests/run-tests.py --- a/tests/run-tests.py Tue Feb 17 18:47:28 2009 -0500 +++ b/tests/run-tests.py Wed Feb 18 13:19:30 2009 +0100 @@ -273,7 +273,7 @@ """Run command in a sub-process, capturing the output (stdout and stderr). Return the exist code, and output.""" # TODO: Use subprocess.Popen if we're running on Python 2.4 - if os.name == 'nt': + if os.name == 'nt' or sys.platform.startswith('java'): tochild, fromchild = os.popen4(cmd) tochild.close() output = fromchild.read()