summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_shutil.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-21 21:09:33 (GMT)
committerGitHub <noreply@github.com>2019-08-21 21:09:33 (GMT)
commitc30c869e8dec5eefdee7977943ffa11a8e3c8d75 (patch)
treea8a2f4f67110fb442b2ca2c72ca174cd7a531ee8 /Lib/test/test_shutil.py
parent7e293f5e4c27592c6808bd7db13d7bd09dd7f5a0 (diff)
downloadcpython-c30c869e8dec5eefdee7977943ffa11a8e3c8d75.zip
cpython-c30c869e8dec5eefdee7977943ffa11a8e3c8d75.tar.gz
cpython-c30c869e8dec5eefdee7977943ffa11a8e3c8d75.tar.bz2
bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287)
(cherry picked from commit 75e064962ee0e31ec19a8081e9d9cc957baf6415) Co-authored-by: Steve Dower <steve.dower@python.org>
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 e209607..88dc4d9 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