tests/run-tests.py
changeset 7792 cf427b04d5c0
parent 7785 660c8dd44060
child 7813 076401cf2b63
--- 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()