mirror of
https://github.com/python/cpython
synced 2024-10-05 22:44:53 +00:00
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())
This commit is contained in:
parent
647d2fe145
commit
673c6cf3d4
|
@ -1,5 +1,6 @@
|
|||
import ntpath
|
||||
import string
|
||||
import os
|
||||
|
||||
errors = 0
|
||||
|
||||
|
@ -34,6 +35,10 @@ def tester(fn, wantResult):
|
|||
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:
|
||||
|
|
Loading…
Reference in a new issue