diff options
author | Steve Dower <steve.dower@python.org> | 2019-09-11 10:48:36 +0100 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2019-09-11 10:48:36 +0100 |
commit | 92521fea5d0d4aeb9b6a3c3fdd4654af700ad5c8 (patch) | |
tree | 7ae2a23543d91404755d096ba5b2bb38888b4f2b /Lib/test/test_ntpath.py | |
parent | 455122a0094c8cfdf7e062eccc5e5b5885c75e8b (diff) | |
download | cpython-git-92521fea5d0d4aeb9b6a3c3fdd4654af700ad5c8.tar.gz |
bpo-38081: Fixes ntpath.realpath('NUL') (GH-15899)
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index c5c96e32d7..2f0faf9472 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -400,6 +400,10 @@ class TestNtpath(NtpathTestCase): self.assertPathEqual(ntpath.realpath("\\\\?\\" + ABSTFN + "3.link"), "\\\\?\\" + ABSTFN + "3.") + @unittest.skipUnless(HAVE_GETFINALPATHNAME, 'need _getfinalpathname') + def test_realpath_nul(self): + tester("ntpath.realpath('NUL')", r'\\.\NUL') + def test_expandvars(self): with support.EnvironmentVarGuard() as env: env.clear() |