diff options
author | Johannes Gijsbers <jlg@dds.nl> | 2004-08-30 10:19:56 (GMT) |
---|---|---|
committer | Johannes Gijsbers <jlg@dds.nl> | 2004-08-30 10:19:56 (GMT) |
commit | ae882f798435266b41a9c8966562102345a3eda5 (patch) | |
tree | 56f865bf36c127b6702fa53a5ad72daca0fa6570 /Lib/test/test_posixpath.py | |
parent | d3f61a2de6a9664dde5f98b5d0acdef7a73948dc (diff) | |
download | cpython-ae882f798435266b41a9c8966562102345a3eda5.zip cpython-ae882f798435266b41a9c8966562102345a3eda5.tar.gz cpython-ae882f798435266b41a9c8966562102345a3eda5.tar.bz2 |
Patch #941486: add os.path.lexists(). Also fix bug #940578 by using lexists in glob.glob.
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r-- | Lib/test/test_posixpath.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 1fc3e7c..0a6ed99 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -150,6 +150,7 @@ class PosixPathTest(unittest.TestCase): os.remove(test_support.TESTFN + "1") self.assertIs(posixpath.islink(test_support.TESTFN + "2"), True) self.assertIs(posixpath.exists(test_support.TESTFN + "2"), False) + self.assertIs(posixpath.lexists(test_support.TESTFN + "2"), True) finally: if not f.close(): f.close() @@ -171,6 +172,7 @@ class PosixPathTest(unittest.TestCase): f.write("foo") f.close() self.assertIs(posixpath.exists(test_support.TESTFN), True) + self.assertIs(posixpath.lexists(test_support.TESTFN), True) finally: if not f.close(): f.close() |