summaryrefslogtreecommitdiff
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-08-21 13:43:06 -0700
committerGitHub <noreply@github.com>2019-08-21 13:43:06 -0700
commit75e064962ee0e31ec19a8081e9d9cc957baf6415 (patch)
treeeff4eb945f41439d4ad87a0786f3f519471601ea /Lib/test/test_shutil.py
parente1c638da6a065af6803028ced1afcc679e63f59d (diff)
downloadcpython-git-75e064962ee0e31ec19a8081e9d9cc957baf6415.tar.gz
bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287)
Diffstat (limited to 'Lib/test/test_shutil.py')
-rw-r--r--Lib/test/test_shutil.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index e209607f22..88dc4d9e19 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1871,11 +1871,7 @@ class TestMove(unittest.TestCase):
dst_link = os.path.join(self.dst_dir, 'quux')
shutil.move(dst, dst_link)
self.assertTrue(os.path.islink(dst_link))
- # On Windows, os.path.realpath does not follow symlinks (issue #9949)
- if os.name == 'nt':
- self.assertEqual(os.path.realpath(src), os.readlink(dst_link))
- else:
- self.assertEqual(os.path.realpath(src), os.path.realpath(dst_link))
+ self.assertEqual(os.path.realpath(src), os.path.realpath(dst_link))
@support.skip_unless_symlink
@mock_rename