◐ Shell
clean mode source ↗

[3.7] bpo-33509: Fix test_warnings for python3 -Werror (GH-7365) by miss-islington · Pull Request #7384 · python/cpython

Expand Up @@ -221,6 +221,8 @@ def test_once(self): 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) Expand Down