From: Mark Hammond Date: Mon, 14 Aug 2000 06:21:26 +0000 (+0000) Subject: Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on Windows... X-Git-Tag: v2.0b1~466 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=673c6cf3d480cbdd31c994a9b25a3821b6a85401;p=python 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()) --- 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: