diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-07 11:04:33 (GMT) |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-07 11:04:33 (GMT) |
| commit | 05c075d629fc81035b438e3b146872dc7799f260 (patch) | |
| tree | 4240955ee3ea5894d0c068c9669244a7200e768c /Lib/test/test_ntpath.py | |
| parent | f08c073ded5a7cf5786f9a561e3d9529def81b6e (diff) | |
| download | cpython-05c075d629fc81035b438e3b146872dc7799f260.zip cpython-05c075d629fc81035b438e3b146872dc7799f260.tar.gz cpython-05c075d629fc81035b438e3b146872dc7799f260.tar.bz2 | |
Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').
Diffstat (limited to 'Lib/test/test_ntpath.py')
| -rw-r--r-- | Lib/test/test_ntpath.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 6bc2a05..da80bc6 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -18,13 +18,14 @@ def tester(fn, wantResult): tester('ntpath.splitext("foo.ext")', ('foo', '.ext')) tester('ntpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext')) -tester('ntpath.splitext(".ext")', ('', '.ext')) +tester('ntpath.splitext(".ext")', ('.ext', '')) tester('ntpath.splitext("\\foo.ext\\foo")', ('\\foo.ext\\foo', '')) tester('ntpath.splitext("foo.ext\\")', ('foo.ext\\', '')) tester('ntpath.splitext("")', ('', '')) tester('ntpath.splitext("foo.bar.ext")', ('foo.bar', '.ext')) tester('ntpath.splitext("xx/foo.bar.ext")', ('xx/foo.bar', '.ext')) tester('ntpath.splitext("xx\\foo.bar.ext")', ('xx\\foo.bar', '.ext')) +tester('ntpath.splitext("c:a/b\\c.d")', ('c:a/b\\c', '.d')) tester('ntpath.splitdrive("c:\\foo\\bar")', ('c:', '\\foo\\bar')) |
