summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-07-20 20:35:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-07-20 20:35:13 (GMT)
commitd69030db4ff101c6182ef13d8a057f5b8d5193d6 (patch)
tree8be2c8d65f0b641f891624f874f0d95e2648e567
parent6f18a3c12409b190a2909871f6653901e7412a5f (diff)
downloadcpython-d69030db4ff101c6182ef13d8a057f5b8d5193d6.zip
cpython-d69030db4ff101c6182ef13d8a057f5b8d5193d6.tar.gz
cpython-d69030db4ff101c6182ef13d8a057f5b8d5193d6.tar.bz2
Get popen test to work even if python is not in the path
-rw-r--r--Lib/test/test_popen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_popen.py b/Lib/test/test_popen.py
index 2681eb0..17491d8 100644
--- a/Lib/test/test_popen.py
+++ b/Lib/test/test_popen.py
@@ -15,7 +15,7 @@ from os import popen
# 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 = 'python -c "import sys;print sys.argv" %s' % (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: