summaryrefslogtreecommitdiff
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 1e85ad5a75..f37a9945ff 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -280,6 +280,10 @@ class TestNtpath(unittest.TestCase):
@unittest.skipUnless(nt, "abspath requires 'nt' module")
def test_abspath(self):
tester('ntpath.abspath("C:\\")', "C:\\")
+ with support.temp_cwd(support.TESTFN) as cwd_dir: # bpo-31047
+ tester('ntpath.abspath("")', cwd_dir)
+ tester('ntpath.abspath(" ")', cwd_dir + "\\ ")
+ tester('ntpath.abspath("?")', cwd_dir + "\\?")
def test_relpath(self):
tester('ntpath.relpath("a")', 'a')