mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #5117: Case normalization was needed on ntpath.relpath(). And
fixed root directory issue on posixpath.relpath(). (Ported working fixes from ntpath)
This commit is contained in:
parent
08654e18ee
commit
b08820ad40
5 changed files with 27 additions and 4 deletions
|
@ -238,6 +238,7 @@ class TestNtpath(unittest.TestCase):
|
|||
tester('ntpath.relpath("/", "/")', '.')
|
||||
tester('ntpath.relpath("/a", "/a")', '.')
|
||||
tester('ntpath.relpath("/a/b", "/a/b")', '.')
|
||||
tester('ntpath.relpath("c:/foo", "C:/FOO")', '.')
|
||||
|
||||
def test_sameopenfile(self):
|
||||
with TemporaryFile() as tf1, TemporaryFile() as tf2:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue