Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tests, attempt 2
  • Loading branch information
barneygale committed Feb 29, 2024
commit 80e384c38cd492a9e0473ace936f64f06ae4535e
8 changes: 5 additions & 3 deletions Lib/test/test_pathlib/test_pathlib_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1997,15 +1997,17 @@ def test_glob_dotdot(self):

@needs_posix
def test_glob_dotdot_posix(self):
p = self.cls(self.base)
P = self.cls
p = P(self.base)
self.assertEqual(set(p.glob("xyzzy/..")), set())

@needs_windows
def test_glob_dotdot_windows(self):
# '..' segments are resolved first on Windows, so
# 'xyzzy' doesn't need to exist.
p = self.cls(self.base)
self.assertEqual(set(p.glob("xyzzy/..")), { p })
P = self.cls
p = P(self.base)
self.assertEqual(set(p.glob("xyzzy/..")), { P(self.base, "xyzzy", "..") })

@needs_symlinks
def test_glob_permissions(self):
Expand Down