From 0c44c0477bf1e6e00c15f6d316e293e56d057e40 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 24 Feb 2003 15:26:39 +0000 Subject: sys.executable can contain spaces, cater for this when passing it to os.popen(). Fixes #692222. --- Lib/test/test_atexit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/test/test_atexit.py') diff --git a/Lib/test/test_atexit.py b/Lib/test/test_atexit.py index 324b76e4cf..1d120dfe2c 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, """\ -- cgit v1.2.1