This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2008-09-11.18:58:22
SpamBayes Score 2.3640828e-06
Marked as misclassified No
Message-id <1221159562.81.0.610389926306.issue3840@psf.upfronthosting.co.za>
In-reply-to
Content
I cannot create patch now, but test_site error comes from same reason.
>test_support.TESTFN is /tmp/@test on cygwin

After I applied following adhok patch, test passed.

Index: Lib/test/test_site.py
===================================================================
--- Lib/test/test_site.py       (revision 66385)
+++ Lib/test/test_site.py       (working copy)
@@ -126,7 +126,7 @@
 class PthFile(object):
     """Helper class for handling testing of .pth files"""

-    def __init__(self, filename_base=TESTFN, imported="time",
+    def __init__(self, filename_base="@test", imported="time",
                     good_dirname="__testdir__", bad_dirname="__bad"):
         """Initialize instance variables"""
         self.filename = filename_base + ".pth"

site.py's addpackage() is doing

    fullname = os.path.join(sitedir, name)

and on my cygwin, this equals to

    os.path.join(
        "/home/WhiteRabbit/python-dev/trunk/lib/test",
        "/tmp/@test.pth") #=> "/tmp/@test.pth"

probably this is not good. (I cannot figure out what site.py is doing
though)
History
Date User Action Args
2008-09-11 18:59:22ocean-citysetrecipients: + ocean-city
2008-09-11 18:59:22ocean-citysetmessageid: <1221159562.81.0.610389926306.issue3840@psf.upfronthosting.co.za>
2008-09-11 18:58:22ocean-citylinkissue3840 messages
2008-09-11 18:58:22ocean-citycreate