summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-12-03 16:13:13 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-12-03 16:13:13 (GMT)
commitcc157516a91b49deeed52eb7c98a0959110cb1bf (patch)
tree84d916241bae263e7be836131abea148a551e850 /Lib/test
parent85a2be7da75875e8c2b7c0ad9f1967f053a4112b (diff)
downloadcpython-cc157516a91b49deeed52eb7c98a0959110cb1bf.zip
cpython-cc157516a91b49deeed52eb7c98a0959110cb1bf.tar.gz
cpython-cc157516a91b49deeed52eb7c98a0959110cb1bf.tar.bz2
Issue #19877: fix regression in test_pathlib when Windows has symlink support available (i.e. in administrator mode).
Patch by Vajrasky Kok.
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/test_pathlib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index c4e28e7..2b8b2c1 100755
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1275,8 +1275,8 @@ class _BasePathTest(object):
# See https://bitbucket.org/pitrou/pathlib/issue/9/pathresolve-fails-on-complex-symlinks
p = self.cls(BASE)
self.dirlink('.', join('0'))
- self.dirlink('0/0', join('1'))
- self.dirlink('1/1', join('2'))
+ self.dirlink(os.path.join('0', '0'), join('1'))
+ self.dirlink(os.path.join('1', '1'), join('2'))
q = p / '2'
self.assertEqual(q.resolve(), p)