From f5836127004f0c034dba052089dc14c133545486 Mon Sep 17 00:00:00 2001 From: drochner Date: Tue, 11 Feb 2003 17:52:50 +0000 Subject: fix a selftest, so we don't get the impression there is something wrong --- lang/python21-pth/distinfo | 3 ++- lang/python21-pth/patches/patch-aj | 13 +++++++++++++ lang/python21/distinfo | 3 ++- lang/python21/patches/patch-aj | 13 +++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 lang/python21-pth/patches/patch-aj create mode 100644 lang/python21/patches/patch-aj diff --git a/lang/python21-pth/distinfo b/lang/python21-pth/distinfo index 5b8735ca3c8..829e646925e 100644 --- a/lang/python21-pth/distinfo +++ b/lang/python21-pth/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.4 2003/01/22 17:05:34 drochner Exp $ +$NetBSD: distinfo,v 1.5 2003/02/11 17:52:51 drochner Exp $ SHA1 (Python-2.1.3.tgz) = 7042a5c5fd60d334c0ac227885d68a4c305713b4 Size (Python-2.1.3.tgz) = 6194432 bytes @@ -11,4 +11,5 @@ SHA1 (patch-af) = 2caa6dd54088b1866679338df2c1311c4718cf0f SHA1 (patch-ag) = fa9a5f13072d9137182675394f04cd9b163d3a5c SHA1 (patch-ah) = 637dfe0cb4d031760f1085fb7921c0ae77158221 SHA1 (patch-ai) = 6420f2994109b8cce55674ea14d7a974f9e039c6 +SHA1 (patch-aj) = ca232f769b57f617496f5c8701a0a32fe55f1fd9 SHA1 (patch-ba) = 5e47b2e75ea40682216e42fbf8b971432836afdc 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: diff --git a/lang/python21/distinfo b/lang/python21/distinfo index e56816ad51c..434b564953d 100644 --- a/lang/python21/distinfo +++ b/lang/python21/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.8 2003/01/22 17:05:33 drochner Exp $ +$NetBSD: distinfo,v 1.9 2003/02/11 17:52:50 drochner Exp $ SHA1 (Python-2.1.3.tgz) = 7042a5c5fd60d334c0ac227885d68a4c305713b4 Size (Python-2.1.3.tgz) = 6194432 bytes @@ -8,3 +8,4 @@ SHA1 (patch-ac) = 397454551beaa8dd11e0a5c171cbdb4f4501a9a3 SHA1 (patch-ad) = 769bcd7803723c8d538a74173792ffcc491fa414 SHA1 (patch-ah) = 637dfe0cb4d031760f1085fb7921c0ae77158221 SHA1 (patch-ai) = 6420f2994109b8cce55674ea14d7a974f9e039c6 +SHA1 (patch-aj) = ca232f769b57f617496f5c8701a0a32fe55f1fd9 diff --git a/lang/python21/patches/patch-aj b/lang/python21/patches/patch-aj new file mode 100644 index 00000000000..1186172b0da --- /dev/null +++ b/lang/python21/patches/patch-aj @@ -0,0 +1,13 @@ +$NetBSD: patch-aj,v 1.1 2003/02/11 17:52:50 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: -- cgit v1.2.3