summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_warnings/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_warnings/__init__.py')
-rw-r--r--Lib/test/test_warnings/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_warnings/__init__.py b/Lib/test/test_warnings/__init__.py
index 940db5c..b48debd 100644
--- a/Lib/test/test_warnings/__init__.py
+++ b/Lib/test/test_warnings/__init__.py
@@ -221,6 +221,8 @@ class FilterTests(BaseTest):
def test_module_globals(self):
with original_warnings.catch_warnings(record=True,
module=self.module) as w:
+ self.module.simplefilter("always", UserWarning)
+
# bpo-33509: module_globals=None must not crash
self.module.warn_explicit('msg', UserWarning, "filename", 42,
module_globals=None)