summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-10-18 12:13:18 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2010-10-18 12:13:18 (GMT)
commitb08820ad406b9fd291a8707e4bad41cc8486ab08 (patch)
tree4d9ef9284fb34d3e4b0e7bf7a29b60e7d952c433 /Lib/test/test_ntpath.py
parent08654e18eed3c8b0224100fe270da618d60d6eb5 (diff)
downloadcpython-b08820ad406b9fd291a8707e4bad41cc8486ab08.zip
cpython-b08820ad406b9fd291a8707e4bad41cc8486ab08.tar.gz
cpython-b08820ad406b9fd291a8707e4bad41cc8486ab08.tar.bz2
Issue #5117: Case normalization was needed on ntpath.relpath(). And
fixed root directory issue on posixpath.relpath(). (Ported working fixes from ntpath)
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 5609aee..237aec0 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -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: