Skip to content

Commit

Permalink
Prefer all when asserting all.
Browse files Browse the repository at this point in the history
⚫ Fade to black.
  • Loading branch information
jaraco committed Mar 25, 2023
1 parent da57855 commit c867641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,5 +360,4 @@ def test_packages_distributions_all_module_types(self):
# All keys return from packages_distributions() should be valid
# import names, which means that they must _at least_ be valid
# identifiers:
for import_name in distributions.keys():
assert import_name.isidentifier(), import_name
assert all(import_name.isidentifier() for import_name in distributions.keys())

0 comments on commit c867641

Please sign in to comment.