diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-07-27 08:09:54 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-07-27 08:09:54 (GMT) |
commit | 33dc0a1705f1493e0ec079e291980da26dd2b39d (patch) | |
tree | 2acf85d3b7268660d3b537da813385623354f9fa /Lib/test/test_ntpath.py | |
parent | 4223f89eddc55c68f7b05aa33bc595e7791c362c (diff) | |
download | cpython-33dc0a1705f1493e0ec079e291980da26dd2b39d.zip cpython-33dc0a1705f1493e0ec079e291980da26dd2b39d.tar.gz cpython-33dc0a1705f1493e0ec079e291980da26dd2b39d.tar.bz2 |
One more crack at join(): stop trying to pretend this isn't a mass of
special cases. test_pkg works again on Windows.
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 7386900..fe997b3 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -66,6 +66,13 @@ tester('ntpath.join("a\\", "b", "c")', 'a\\b\\c') tester('ntpath.join("a", "b\\", "c")', 'a\\b\\c') tester('ntpath.join("a", "b", "\\c")', '\\c') tester('ntpath.join("d:\\", "\\pleep")', 'd:\\pleep') +tester('ntpath.join("d:\\", "a", "b")', 'd:\\a\\b') +tester("ntpath.join('c:', '/a')", 'c:/a') +tester("ntpath.join('c:/', '/a')", 'c:/a') +tester("ntpath.join('c:/a', '/b')", '/b') +tester("ntpath.join('c:', 'd:/')", 'd:/') +tester("ntpath.join('c:/', 'd:/')", 'd:/') +tester("ntpath.join('c:/', 'd:/a/b')", 'd:/a/b') if errors: raise TestFailed(str(errors) + " errors.") |