changeset 7792:cf427b04d5c0

tests: use same popen strategy for jython as for nt
author Frank Wierzbicki <fwierzbicki@gmail.com>
date Wed, 18 Feb 2009 13:19:30 +0100
parents 089cb73f8ecc
children 9915283e8ae2
files tests/run-tests.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()