Skip to content

Commit

Permalink
Fix tests on Windows (take 3)
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Jul 3, 2023
1 parent 39bf6b3 commit 0515dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,7 @@ def test_resolve_common(self):
self._check_resolve_relative(p, P(BASE, 'dirB', 'foo', 'in', 'spam'),
False)
p = P(BASE, 'dirA', 'linkX', 'linkY', '..', 'foo', 'in', 'spam')
if os.name == 'nt':
if isinstance(p, pathlib.WindowsPath):
# In Windows, if linkY points to dirB, 'dirA\linkY\..'
# resolves to 'dirA' without resolving linkY first.
self._check_resolve_relative(p, P(d, 'foo', 'in', 'spam'), False)
Expand Down

0 comments on commit 0515dea

Please sign in to comment.