diff options
author | Guido van Rossum <guido@python.org> | 1999-04-06 19:38:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-06 19:38:18 (GMT) |
commit | 630a9a68941205a7ebb8428fe4faeef82429d77d (patch) | |
tree | 82d0704821ec80f2984172cf00e5da6a01907b64 /Lib/test | |
parent | f3c695c4675e61d5c303c96db699184253810306 (diff) | |
download | cpython-630a9a68941205a7ebb8428fe4faeef82429d77d.zip cpython-630a9a68941205a7ebb8428fe4faeef82429d77d.tar.gz cpython-630a9a68941205a7ebb8428fe4faeef82429d77d.tar.bz2 |
Fix the tests now that splitdrive() no longer treats UNC paths special.
(Some tests converted to splitunc() tests.)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_ntpath.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 9c79865..1f824a5 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -16,18 +16,18 @@ def tester(fn, wantResult): errors = errors + 1 tester('ntpath.splitdrive("c:\\foo\\bar")', ('c:', '\\foo\\bar')) -tester('ntpath.splitdrive("\\\\conky\\mountpoint\\foo\\bar")', ('\\\\conky\\mountpoint', '\\foo\\bar')) +tester('ntpath.splitunc("\\\\conky\\mountpoint\\foo\\bar")', ('\\\\conky\\mountpoint', '\\foo\\bar')) tester('ntpath.splitdrive("c:/foo/bar")', ('c:', '/foo/bar')) -tester('ntpath.splitdrive("//conky/mountpoint/foo/bar")', ('//conky/mountpoint', '/foo/bar')) +tester('ntpath.splitunc("//conky/mountpoint/foo/bar")', ('//conky/mountpoint', '/foo/bar')) tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar')) tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")', ('\\\\conky\\mountpoint\\foo', 'bar')) tester('ntpath.split("c:\\")', ('c:\\', '')) -tester('ntpath.split("\\\\conky\\mountpoint\\")', ('\\\\conky\\mountpoint\\', '')) +tester('ntpath.split("\\\\conky\\mountpoint\\")', ('\\\\conky\\mountpoint', '')) tester('ntpath.split("c:/")', ('c:/', '')) -tester('ntpath.split("//conky/mountpoint/")', ('//conky/mountpoint/', '')) +tester('ntpath.split("//conky/mountpoint/")', ('//conky/mountpoint', '')) tester('ntpath.isabs("c:\\")', 1) tester('ntpath.isabs("\\\\conky\\mountpoint\\")', 1) |