summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_atexit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-02-24 15:26:39 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-02-24 15:26:39 (GMT)
commit0c44c0477bf1e6e00c15f6d316e293e56d057e40 (patch)
tree615cc3034ff6598b7537a5b7ed60661ab5c05d0e /Lib/test/test_atexit.py
parent9ce623fce5707c9c2c9c4716d719e4178a08f80b (diff)
downloadcpython-0c44c0477bf1e6e00c15f6d316e293e56d057e40.zip
cpython-0c44c0477bf1e6e00c15f6d316e293e56d057e40.tar.gz
cpython-0c44c0477bf1e6e00c15f6d316e293e56d057e40.tar.bz2
sys.executable can contain spaces, cater for this when passing it to
os.popen(). Fixes #692222.
Diffstat (limited to 'Lib/test/test_atexit.py')
-rw-r--r--Lib/test/test_atexit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_atexit.py b/Lib/test/test_atexit.py
index 324b76e..1d120df 100644
--- a/Lib/test/test_atexit.py
+++ b/Lib/test/test_atexit.py
@@ -27,7 +27,7 @@ f = file(fname, "w")
f.write(input)
f.close()
-p = popen("%s %s" % (executable, fname))
+p = popen('"%s" %s' % (executable, fname))
output = p.read()
p.close()
vereq(output, """\
@@ -55,7 +55,7 @@ f = file(fname, "w")
f.write(input)
f.close()
-p = popen("%s %s" % (executable, fname))
+p = popen('"%s" %s' % (executable, fname))
output = p.read()
p.close()
vereq(output, """\