From c8676416f80bb8ef79f46c24b8cc25812cc0708b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 25 Mar 2023 10:51:52 -0400 Subject: [PATCH] Prefer all when asserting all. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⚫ Fade to black. --- tests/test_main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_main.py b/tests/test_main.py index 83f04f80..73747405 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -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())