summaryrefslogtreecommitdiff
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 +0000
committerMartin v. Löwis <martin@v.loewis.de>2002-12-12 20:30:20 +0000
commit6627937f4be1a0d6e6074ae8afa05797a50fa45a (patch)
tree920c3abc80caa5e17a7d1cc14550990ea4fd6c09 /Lib/test/test_posixpath.py
parent6aa6925684222afdc67401b84dded627ef7499ca (diff)
downloadcpython-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.py5
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)