8000 GH-73435: Add `pathlib.PurePath.full_match()` by barneygale · Pull Request #114350 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-73435: Add pathlib.PurePath.full_match() #114350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jan 26, 2024
Merged
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
Couple more test cases.
  • Loading branch information
barneygale committed Jan 26, 2024
commit f60f1474b9a50eeb64c90ec9a2c37feb9504fba5
4 changes: 4 additions & 0 deletions Lib/test/test_pathlib/test_pathlib_abc.py
7AA4
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ def test_full_match_common(self):
# Matching with empty pattern
self.assertTrue(P('').full_match(''))
self.assertTrue(P('.').full_match('.'))
self.assertFalse(P('/').full_match(''))
self.assertFalse(P('/').full_match('.'))
self.assertFalse(P('foo').full_match(''))
self.assertFalse(P('foo').full_match('.'))

def test_parts_common(self):
# `parts` returns a tuple.
Expand Down
0