[pypy-svn] r72900 - pypy/trunk/pypy/interpreter/test

arigo at codespeak.net arigo at codespeak.net
Fri Mar 26 15:43:47 CET 2010


Author: arigo
Date: Fri Mar 26 15:43:45 2010
New Revision: 72900

Modified:
   pypy/trunk/pypy/interpreter/test/test_executioncontext.py
Log:
Give up quoting on Windows.


Modified: pypy/trunk/pypy/interpreter/test/test_executioncontext.py
==============================================================================
--- pypy/trunk/pypy/interpreter/test/test_executioncontext.py	(original)
+++ pypy/trunk/pypy/interpreter/test/test_executioncontext.py	Fri Mar 26 15:43:45 2010
@@ -271,7 +271,11 @@
         # would be called
         import os, sys
         print sys.executable, self.tmpfile
-        g = os.popen('"%s" "%s"' % (sys.executable, self.tmpfile), 'r')
+        if sys.platform == "win32":    # quote? what's that?
+            cmdformat = "%s %s"
+        else:
+            cmdformat = "'%s' '%s'"
+        g = os.popen(cmdformat % (sys.executable, self.tmpfile), 'r')
         data = g.read()
         g.close()
         assert 'Called 1' in data



More information about the Pypy-commit mailing list