Skip to content
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
Next Next commit
Simplify test condition
  • Loading branch information
barneygale committed May 6, 2023
commit 79337a12a4edb84c08146edf100fc7fb4a328fd4
4 changes: 1 addition & 3 deletions Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1852,9 +1852,7 @@ def _check(path, pattern, case_sensitive, expected):

def test_rglob_common(self):
def _check(glob, expected):
actual = list(glob)
self.assertEqual(set(actual), { P(BASE, q) for q in expected })
self.assertEqual(len(actual), len(expected))
self.assertEqual(sorted(glob), sorted(P(BASE, q) for q in expected))
P = self.cls
p = P(BASE)
it = p.rglob("fileA")
Expand Down