Author ocean-city
Recipients ocean-city
Date 2008-09-11.18:27:20
SpamBayes Score 3.97842e-07
Marked as misclassified No
Message-id <1221157656.48.0.996285676684.issue3840@psf.upfronthosting.co.za>
In-reply-to
Content
test_urllib's test_geturl fails with following messege.

test_urllib
test test_urllib failed -- Traceback (most recent call last):
  File "/home/WhiteRabbit/python-dev/trunk/Lib/test/test_urllib.py",
line 84, in
 test_geturl
    self.assertEqual(self.returned_obj.geturl(), self.pathname)
AssertionError: 'file:///tmp/@test' != '/tmp/@test'

test_support.TESTFN is /tmp/@test on cygwin, and Lib/urllib.py(484,485)
specially cares about leading slash. 

            if file[:1] == '/':
                urlfile = 'file://' + file

If this is geturl()'s design, probably test should be changed like
attached patch.
History
Date User Action Args
2008-09-11 18:27:36ocean-citysetrecipients: + ocean-city
2008-09-11 18:27:36ocean-citysetmessageid: <1221157656.48.0.996285676684.issue3840@psf.upfronthosting.co.za>
2008-09-11 18:27:20ocean-citylinkissue3840 messages
2008-09-11 18:27:20ocean-citycreate