Issue 3701: test_ntpath.test_relpath fails when launched from a different Windows drive (original) (raw)

Created on 2008-08-27 13:59 by pitrou, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (4)
msg72030 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2008-08-27 13:59
C:\>z:PCbuild\python_d.exe z:Lib\test\regrtest.py -uall -v test_ntpath test_ntpath test_abspath (test.test_ntpath.TestNtpath) ... ok test_commonprefix (test.test_ntpath.TestNtpath) ... ok test_expandvars (test.test_ntpath.TestNtpath) ... ok test_isabs (test.test_ntpath.TestNtpath) ... ok test_join (test.test_ntpath.TestNtpath) ... ok test_normpath (test.test_ntpath.TestNtpath) ... ok test_relpath (test.test_ntpath.TestNtpath) ... ERROR test_split (test.test_ntpath.TestNtpath) ... ok test_splitdrive (test.test_ntpath.TestNtpath) ... ok test_splitext (test.test_ntpath.TestNtpath) ... ok test_splitunc (test.test_ntpath.TestNtpath) ... ok ====================================================================== ERROR: test_relpath (test.test_ntpath.TestNtpath) ---------------------------------------------------------------------- Traceback (most recent call last): File "Z:\py3k\__svn__\lib\test\test_ntpath.py", line 171, in test_relpath tester('ntpath.relpath("a")', 'a') File "Z:\py3k\__svn__\lib\test\test_ntpath.py", line 13, in tester %(str(fn), str(wantResult), str(gotResult))) test.support.TestFailed: ntpath.relpath("a") should return: a but returned: ..\a
msg109563 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2010-07-08 18:20
Presumably this is still valid?
msg109570 - (view) Author: Brian Curtin (brian.curtin) * (Python committer) Date: 2010-07-08 19:02
This is only an issue on release31-maint. py3k and release27-maint passed this test when I ran from H:\ with my source on C:\.
msg184149 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-03-14 08:26
Since 3.1 is no longer maintained I'm going to close this.
History
Date User Action Args
2022-04-11 14:56:38 admin set github: 47951
2013-03-14 08:26:29 ezio.melotti set status: open -> closednosy: + ezio.melottimessages: + resolution: out of datestage: needs patch -> resolved
2010-07-08 19:02:19 brian.curtin set versions: - Python 2.7, Python 3.2nosy: + brian.curtinmessages: + stage: needs patch
2010-07-08 18:20:40 BreamoreBoy set nosy: + loewis, BreamoreBoymessages: + versions: + Python 3.1, Python 2.7, Python 3.2, - Python 3.0
2008-08-27 13:59:43 pitrou create