diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-12 20:30:20 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-12 20:30:20 +0000 |
commit | 6627937f4be1a0d6e6074ae8afa05797a50fa45a (patch) | |
tree | 920c3abc80caa5e17a7d1cc14550990ea4fd6c09 /Lib/test/test_posixpath.py | |
parent | 6aa6925684222afdc67401b84dded627ef7499ca (diff) | |
download | cpython-6627937f4be1a0d6e6074ae8afa05797a50fa45a.tar.gz |
Patch #536661: Improve performance of splitext. Add test_macpath.
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r-- | Lib/test/test_posixpath.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 362483f6db..0aaddaf0e6 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -21,6 +21,11 @@ tester('posixpath.split("foo")', ('', 'foo')) tester('posixpath.splitext("foo.ext")', ('foo', '.ext')) tester('posixpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext')) +tester('posixpath.splitext(".ext")', ('', '.ext')) +tester('posixpath.splitext("/foo.ext/foo")', ('/foo.ext/foo', '')) +tester('posixpath.splitext("foo.ext/")', ('foo.ext/', '')) +tester('posixpath.splitext("")', ('', '')) +tester('posixpath.splitext("foo.bar.ext")', ('foo.bar', '.ext')) tester('posixpath.isabs("/")', 1) tester('posixpath.isabs("/foo")', 1) |