diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-12 20:30:20 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-12 20:30:20 (GMT) |
commit | de3337913f08266b16842f21a67427d10725ed8f (patch) | |
tree | f54488a637762efbde037aac60ebbfb83a217735 /Lib/test/test_posixpath.py | |
parent | 427a290c9afca605ab8ed799f0072d890318b837 (diff) | |
download | cpython-de3337913f08266b16842f21a67427d10725ed8f.zip cpython-de3337913f08266b16842f21a67427d10725ed8f.tar.gz cpython-de3337913f08266b16842f21a67427d10725ed8f.tar.bz2 |
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 362483f..0aaddaf 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) |