summaryrefslogtreecommitdiff
path: root/lang/python21-pth/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python21-pth/patches/patch-aj')
-rw-r--r--lang/python21-pth/patches/patch-aj13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/python21-pth/patches/patch-aj b/lang/python21-pth/patches/patch-aj
new file mode 100644
index 00000000000..05c6b6fbb72
--- /dev/null
+++ b/lang/python21-pth/patches/patch-aj
@@ -0,0 +1,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: