summaryrefslogtreecommitdiff
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2000-08-14 06:21:26 +0000
committerMark Hammond <mhammond@skippinet.com.au>2000-08-14 06:21:26 +0000
commit0235b749f73bf28d7d50bb482862a88a748c30ca (patch)
tree2faf33cf6cc46da67a54a247b2df4dcc424b0380 /Lib/test/test_ntpath.py
parent094c7afc6c238dcbd793f4d0bf4aeda424d4afc1 (diff)
downloadcpython-0235b749f73bf28d7d50bb482862a88a748c30ca.tar.gz
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/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 1f824a5848..e458f625a0 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: