Skip to content

Commit

Permalink
Clarify filter by flipping the boolean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJCLaw committed Jul 1, 2024
1 parent b940432 commit 0ca5e3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ def test_import(self):
]
difference = {
x for x in difference
if all(not x.startswith('from os import ' + prefix)
for prefix in ACCEPTED_DIFFERENCE_PREFIXES)
if not any(
x.startswith('from os import ' + prefix)
for prefix in ACCEPTED_DIFFERENCE_PREFIXES
)
}
# There are quite a few differences, because both Windows and Linux
# (posix and nt) libraries are included.
Expand Down

0 comments on commit 0ca5e3d

Please sign in to comment.