diff options
author | Mark Hammond <mhammond@skippinet.com.au> | 2000-08-14 06:21:26 (GMT) |
---|---|---|
committer | Mark Hammond <mhammond@skippinet.com.au> | 2000-08-14 06:21:26 (GMT) |
commit | 673c6cf3d480cbdd31c994a9b25a3821b6a85401 (patch) | |
tree | cb413afa014577b1ebee36ff21d270e40f2fc72c /Lib | |
parent | 647d2fe1451b1e7cd558771fcbae3fbdce1ffcf7 (diff) | |
download | cpython-673c6cf3d480cbdd31c994a9b25a3821b6a85401.zip cpython-673c6cf3d480cbdd31c994a9b25a3821b6a85401.tar.gz cpython-673c6cf3d480cbdd31c994a9b25a3821b6a85401.tar.bz2 |
Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_ntpath.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 1f824a5..e458f62 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -1,5 +1,6 @@ import ntpath import string +import os errors = 0 @@ -34,6 +35,10 @@ tester('ntpath.isabs("\\\\conky\\mountpoint\\")', 1) tester('ntpath.isabs("\\foo")', 1) tester('ntpath.isabs("\\foo\\bar")', 1) +tester('ntpath.abspath("C:\\")', "C:\\") +tester('ntpath.abspath("")', os.getcwd()) + + if errors: print str(errors) + " errors." else: |