pkgsrc/lang/python21-pth/patches/patch-aj

14 lines
620 B
Text
Raw Normal View History

$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: