]> granicus.if.org Git - python/commitdiff
Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on Windows...
authorMark Hammond <mhammond@skippinet.com.au>
Mon, 14 Aug 2000 06:21:26 +0000 (06:21 +0000)
committerMark Hammond <mhammond@skippinet.com.au>
Mon, 14 Aug 2000 06:21:26 +0000 (06:21 +0000)
Lib/test/test_ntpath.py

index 1f824a5848709e03e50636868b18ad6ed7351356..e458f625a01542552ca63e10253101f882b20572 100644 (file)
@@ -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: