commit | 46398fba4d66ad342cf2504ef947b5fb857423b2 | [log] [tgz] |
---|---|---|
author | kernc <kerncece@gmail.com> | Thu Jun 11 20:03:29 2020 +0200 |
committer | GitHub <noreply@github.com> | Thu Jun 11 14:03:29 2020 -0400 |
tree | 307f5e4c871dff3f0b83b8e930b61fddaf362993 | |
parent | 436b648910c27baf8164a6d46d746d36d8a93478 [diff] |
bpo-29620: iterate over a copy of sys.modules (GH-4800) 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.