[Python-checkins] r63405 - python/trunk/Lib/test/test_subprocess.py
gregory.p.smith
python-checkins at python.org
Sat May 17 09:17:35 CEST 2008
Author: gregory.p.smith
Date: Sat May 17 09:17:34 2008
New Revision: 63405
Log:
fix issue2381: test_subprocess fails if your sys.executable is on a
path with a space in it.
Modified:
python/trunk/Lib/test/test_subprocess.py
Modified: python/trunk/Lib/test/test_subprocess.py
==============================================================================
--- python/trunk/Lib/test/test_subprocess.py (original)
+++ python/trunk/Lib/test/test_subprocess.py Sat May 17 09:17:34 2008
@@ -534,7 +534,7 @@
# args is a string
f, fname = self.mkstemp()
os.write(f, "#!/bin/sh\n")
- os.write(f, "exec %s -c 'import sys; sys.exit(47)'\n" %
+ os.write(f, "exec '%s' -c 'import sys; sys.exit(47)'\n" %
sys.executable)
os.close(f)
os.chmod(fname, 0700)
@@ -576,7 +576,7 @@
# call() function with string argument on UNIX
f, fname = self.mkstemp()
os.write(f, "#!/bin/sh\n")
- os.write(f, "exec %s -c 'import sys; sys.exit(47)'\n" %
+ os.write(f, "exec '%s' -c 'import sys; sys.exit(47)'\n" %
sys.executable)
os.close(f)
os.chmod(fname, 0700)
More information about the Python-checkins
mailing list