diff options
author | Steve Dower <steve.dower@python.org> | 2019-08-21 23:45:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 23:45:02 (GMT) |
commit | 06be2c7f357d12249445e95def1fb708a087b357 (patch) | |
tree | 8777204c0db7643d80818387491b695882874013 /Lib/test | |
parent | 7ebdda0dbee7df6f0c945a7e1e623e47676e112d (diff) | |
download | cpython-06be2c7f357d12249445e95def1fb708a087b357.zip cpython-06be2c7f357d12249445e95def1fb708a087b357.tar.gz cpython-06be2c7f357d12249445e95def1fb708a087b357.tar.bz2 |
bpo-9949: Call normpath() in realpath() and avoid unnecessary prefixes (GH-15369)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_ntpath.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index 74dc8c3..285fb69 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -333,11 +333,11 @@ class TestNtpath(unittest.TestCase): self.assertEqual(ntpath.realpath(ABSTFN + "1\\.."), ntpath.dirname(ABSTFN)) self.assertEqual(ntpath.realpath(ABSTFN + "1\\..\\x"), - ntpath.dirname(P + ABSTFN) + "\\x") + ntpath.dirname(ABSTFN) + "\\x") os.symlink(ABSTFN + "x", ABSTFN + "y") self.assertEqual(ntpath.realpath(ABSTFN + "1\\..\\" + ntpath.basename(ABSTFN) + "y"), - P + ABSTFN + "x") + ABSTFN + "x") self.assertIn(ntpath.realpath(ABSTFN + "1\\..\\" + ntpath.basename(ABSTFN) + "1"), expected) |