summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posixpath.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-12-12 20:30:20 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-12-12 20:30:20 (GMT)
commitde3337913f08266b16842f21a67427d10725ed8f (patch)
treef54488a637762efbde037aac60ebbfb83a217735 /Lib/test/test_posixpath.py
parent427a290c9afca605ab8ed799f0072d890318b837 (diff)
downloadcpython-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.py5
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)