bpo-35306: Handle '*' in pathlib.Path functions on Windows by vladima · Pull Request #11133 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 3 additions & 2 deletions Lib/pathlib.py
3 changes: 3 additions & 0 deletions Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2242,6 +2242,9 @@ def test_rglob(self):
p = P(BASE, "dirC")
self.assertEqual(set(p.rglob("FILEd")), { P(BASE, "dirC/dirD/fileD") })

def test_exists_for_invalid_path(self):
self.assertEqual(self.cls("*").exists(), False)

def test_expanduser(self):
P = self.cls
with support.EnvironmentVarGuard() as env:
Expand Down