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 serhiy.storchaka
Recipients Benno.Rice, BreamoreBoy, ezio.melotti, flox, orsenthil, serhiy.storchaka, vstinner
Date 2014-09-27.18:43:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411843413.11.0.388641903919.issue7665@psf.upfronthosting.co.za>
In-reply-to
Content
The ntpath test failure is replicated when the test is ran directly:

~/py/cpython\1$ ./python Lib/test/test_ntpath.py
........................s........E.....
======================================================================
ERROR: test_relpath (__main__.TestNtpath)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_ntpath.py", line 314, in test_relpath
    tester('ntpath.relpath("a", "../b")', '..\\'+currentdir+'\\a')
  File "Lib/test/test_ntpath.py", line 16, in tester
    %(str(fn), str(wantResult), str(gotResult)))
test.support.TestFailed: ntpath.relpath("a", "../b") should return: ..\cpython\1\a but returned: ..\1\a

----------------------------------------------------------------------

Here is a patch with a fix of test_ntpath and with simpler fix of test_urllib2.
History
Date User Action Args
2014-09-27 18:43:33serhiy.storchakasetrecipients: + serhiy.storchaka, orsenthil, vstinner, ezio.melotti, flox, Benno.Rice, BreamoreBoy
2014-09-27 18:43:33serhiy.storchakasetmessageid: <1411843413.11.0.388641903919.issue7665@psf.upfronthosting.co.za>
2014-09-27 18:43:33serhiy.storchakalinkissue7665 messages
2014-09-27 18:43:32serhiy.storchakacreate