]> granicus.if.org Git - python/commit
bpo-33509: Fix _warnings for module_globals=None (#6833)
authorVictor Stinner <vstinner@redhat.com>
Tue, 15 May 2018 18:42:12 +0000 (20:42 +0200)
committerGitHub <noreply@github.com>
Tue, 15 May 2018 18:42:12 +0000 (20:42 +0200)
commitb056562860c227bad2e0ba7cd3130e115c007768
tree52e5caee0ef0339c549b8ac11b8afad64b45aa3e
parent8709b236fc997077d24b4802320db287640f82e2
bpo-33509: Fix _warnings for module_globals=None (#6833)

Don't crash on warnings.warn_explicit() if module_globals is not a dict.
Lib/test/test_warnings/__init__.py
Misc/NEWS.d/next/Core and Builtins/2018-05-14-17-31-02.bpo-33509.pIUfTd.rst [new file with mode: 0644]
Python/_warnings.c