sys.executable can contain spaces, cater for this when passing it to
os.popen(). Fixes #692222.
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py
index 9111ec5..7a0ef9b 100644
--- a/Lib/test/test_popen.py
+++ b/Lib/test/test_popen.py
@@ -15,7 +15,7 @@
# This results in Python being spawned and printing the sys.argv list.
# We can then eval() the result of this, and see what each argv was.
def _do_test_commandline(cmdline, expected):
- cmd = '%s -c "import sys;print sys.argv" %s' % (sys.executable, cmdline)
+ cmd = '"%s" -c "import sys;print sys.argv" %s' % (sys.executable, cmdline)
data = popen(cmd).read()
got = eval(data)[1:] # strip off argv[0]
if got != expected: