Skip to content

Commit

Permalink
Found a test for __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
csm10495 committed Mar 22, 2024
1 parent 881fcbd commit 0feb18f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_warnings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def test_module_all_attribute(self):
self.assertTrue(hasattr(self.module, '__all__'))
target_api = ["warn", "warn_explicit", "showwarning",
"formatwarning", "filterwarnings", "simplefilter",
"resetwarnings", "catch_warnings", "deprecated"]
"resetwarnings", "catch_warnings", "deprecated",
"WarningMessage"]
self.assertSetEqual(set(self.module.__all__),
set(target_api))

Expand Down

0 comments on commit 0feb18f

Please sign in to comment.