File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def handler2(*args, **kargs):
2727f .write (input )
2828f .close ()
2929
30- p = popen ("%s %s" % (executable , fname ))
30+ p = popen (' "%s" %s' % (executable , fname ))
3131output = p .read ()
3232p .close ()
3333vereq (output , """\
@@ -55,7 +55,7 @@ def indirect():
5555f .write (input )
5656f .close ()
5757
58- p = popen ("%s %s" % (executable , fname ))
58+ p = popen (' "%s" %s' % (executable , fname ))
5959output = p .read ()
6060p .close ()
6161vereq (output , """\
Original file line number Diff line number Diff line change 1515# This results in Python being spawned and printing the sys.argv list.
1616# We can then eval() the result of this, and see what each argv was.
1717def _do_test_commandline (cmdline , expected ):
18- cmd = '%s -c "import sys;print sys.argv" %s' % (sys .executable , cmdline )
18+ cmd = '"%s" -c "import sys;print sys.argv" %s' % (sys .executable , cmdline )
1919 data = popen (cmd ).read ()
2020 got = eval (data )[1 :] # strip off argv[0]
2121 if got != expected :
You can’t perform that action at this time.
0 commit comments