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.

classification
Title: test_ntpath.test_relpath fails when launched from a different Windows drive
Type: behavior Stage: resolved
Components: Library (Lib), Tests Versions: Python 3.1
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, brian.curtin, ezio.melotti, loewis, pitrou
Priority: normal Keywords:

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:38adminsetgithub: 47951
2013-03-14 08:26:29ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg184149

resolution: out of date
stage: needs patch -> resolved
2010-07-08 19:02:19brian.curtinsetversions: - Python 2.7, Python 3.2
nosy: + brian.curtin

messages: + msg109570

stage: needs patch
2010-07-08 18:20:40BreamoreBoysetnosy: + loewis, BreamoreBoy

messages: + msg109563
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 3.0
2008-08-27 13:59:43pitroucreate