Skip to content

[3.7] bpo-29620: iterate over a copy of sys.modules (GH-4800)#20817

Merged
akuchling merged 1 commit into
python:3.7from
miss-islington:backport-46398fb-3.7
Jun 11, 2020
Merged

[3.7] bpo-29620: iterate over a copy of sys.modules (GH-4800)#20817
akuchling merged 1 commit into
python:3.7from
miss-islington:backport-46398fb-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 11, 2020

Copy link
Copy Markdown
Contributor

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 46398fb)

Co-authored-by: kernc kerncece@gmail.com

https://bugs.python.org/issue29620

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 46398fb)

Co-authored-by: kernc <kerncece@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@kernc and @akuchling: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@kernc and @akuchling: Status check is done, and it's a success ✅ .

@akuchling
akuchling merged commit f881c86 into python:3.7 Jun 11, 2020
@miss-islington
miss-islington deleted the backport-46398fb-3.7 branch June 11, 2020 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants