]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 11 Jun 2020 18:31:46 +0000 (11:31 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Jun 2020 18:31:46 +0000 (14:31 -0400)
commit3e499cda47afe2282ca3f1d04151e2c86f2e7e09
tree689ab461cf045475ee9db35c75b6b75f40565792
parent5b8e3a533560c39eb40b2fb950d2b14caacfaf6a
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816)

unittest.TestCase.assertWarns no longer raises a RuntimeException
when accessing a module's ``__warningregistry__`` causes importation of a new
module, or when a new module is imported in another thread.
(cherry picked from commit 46398fba4d66ad342cf2504ef947b5fb857423b2)

Co-authored-by: kernc <kerncece@gmail.com>
Lib/unittest/case.py
Lib/unittest/test/test_case.py
Misc/NEWS.d/next/Library/2018-08-21-16-20-33.bpo-29620.xxx666.rst [new file with mode: 0644]