diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-11-18 16:09:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 16:09:41 (GMT) |
commit | 71d842b9c1e9d86ede449783e630b7a768b579d6 (patch) | |
tree | d810d2db6dd1ee76c54d009f14b1f5e39303ee4f /Python/ceval.c | |
parent | feccea6a7eb1309513750bb4a31aee5a65c7c4bf (diff) | |
download | cpython-71d842b9c1e9d86ede449783e630b7a768b579d6.zip cpython-71d842b9c1e9d86ede449783e630b7a768b579d6.tar.gz cpython-71d842b9c1e9d86ede449783e630b7a768b579d6.tar.bz2 |
bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-29605)
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.
Patch by Kernc.
(cherry picked from commit 46398fba4d66ad342cf2504ef947b5fb857423b2)
Co-authored-by: kernc <kerncece@gmail.com>
Diffstat (limited to 'Python/ceval.c')
0 files changed, 0 insertions, 0 deletions