blob: 05c6b6fbb7219ebb1ba57b1ec5d1fcef27b4e42b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-aj,v 1.1 2003/02/11 17:52:51 drochner Exp $
--- Lib/test/test_popen.py.orig Tue Feb 11 17:23:42 2003
+++ Lib/test/test_popen.py Tue Feb 11 17:26:22 2003
@@ -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 = '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:
|