Clarify filter by flipping the boolean logic

This commit is contained in:
Peter Law
2024-06-23 12:55:12 +01:00
parent ee90cd97b6
commit bbbaad21e8

View File

@@ -84,8 +84,10 @@ class TestSetupReadline(unittest.TestCase):
]
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.