Mercurial > public > mercurial-scm > hg-stable
diff tests/run-tests.py @ 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 | 660c8dd44060 |
children | 076401cf2b63 |
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()