Kaydet (Commit) af8a6873 authored tarafından Gregory P. Smith's avatar Gregory P. Smith

fix issue2381: test_subprocess fails if your sys.executable is on a

path with a space in it.
üst 664782e1
......@@ -534,7 +534,7 @@ class ProcessTestCase(unittest.TestCase):
# 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 @@ class ProcessTestCase(unittest.TestCase):
# 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment