mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Patch #1559413: Fix test_cmd_line if sys.executable contains a space.
Will backport.
This commit is contained in:
parent
71436f0229
commit
cd1210a55f
2 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,7 @@ import subprocess
|
|||
|
||||
class CmdLineTest(unittest.TestCase):
|
||||
def start_python(self, cmd_line):
|
||||
outfp, infp = popen2.popen4('%s %s' % (sys.executable, cmd_line))
|
||||
outfp, infp = popen2.popen4('"%s" %s' % (sys.executable, cmd_line))
|
||||
infp.close()
|
||||
data = outfp.read()
|
||||
outfp.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue