From: Antoine Pitrou Date: Tue, 3 Dec 2013 16:13:13 +0000 (+0100) Subject: Issue #19877: fix regression in test_pathlib when Windows has symlink support availab... X-Git-Tag: v3.4.0b2~360 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc157516a91b49deeed52eb7c98a0959110cb1bf;p=thirdparty%2FPython%2Fcpython.git Issue #19877: fix regression in test_pathlib when Windows has symlink support available (i.e. in administrator mode). Patch by Vajrasky Kok. --- diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index c4e28e7741ee..2b8b2c1a7d63 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)