#1742: don't raise exception on os.path.relpath("a", "a"), but return os.curdir.

Reported by Jesse Towner.
This commit is contained in:
Georg Brandl 2008-01-06 14:27:15 +00:00
parent e2a902c669
commit 183a084da3
5 changed files with 9 additions and 0 deletions

View file

@ -166,6 +166,7 @@ tester('ntpath.relpath("a", "../b")', '..\\'+currentdir+'\\a')
tester('ntpath.relpath("a/b", "../c")', '..\\'+currentdir+'\\a\\b')
tester('ntpath.relpath("a", "b/c")', '..\\..\\a')
tester('ntpath.relpath("//conky/mountpoint/a", "//conky/mountpoint/b/c")', '..\\..\\a')
tester('ntpath.relpath("a", "a")', '.')
if errors:
raise TestFailed(str(errors) + " errors.")