[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2021-11-18 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 71d842b9c1e9d86ede449783e630b7a768b579d6 by Miss Islington (bot) in branch '3.9': bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-29605) https://github.com/python/cpython/commit/71d842b9c1e9d86ede449783e630b7a768b579d6 --

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2021-11-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +27846 pull_request: https://github.com/python/cpython/pull/29605 ___ Python tracker ___

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: Changes applied to master, 3.8, and 3.7. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: New changeset f881c869753fb2b1b7aef353416893190251c539 by Miss Islington (bot) in branch '3.7': bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20817) https://github.com/python/cpython/commit/f881c869753fb2b1b7aef353416893190251c539 --

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: New changeset 3e499cda47afe2282ca3f1d04151e2c86f2e7e09 by Miss Islington (bot) in branch '3.8': bpo-29620: iterate over a copy of sys.modules (GH-4800) (GH-20816) https://github.com/python/cpython/commit/3e499cda47afe2282ca3f1d04151e2c86f2e7e09 --

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread miss-islington
Change by miss-islington : -- pull_requests: +20015 pull_request: https://github.com/python/cpython/pull/20817 ___ Python tracker ___

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +20014 pull_request: https://github.com/python/cpython/pull/20816 ___ Python tracker

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-06-11 Thread A.M. Kuchling
A.M. Kuchling added the comment: New changeset 46398fba4d66ad342cf2504ef947b5fb857423b2 by kernc in branch 'master': bpo-29620: iterate over a copy of sys.modules (GH-4800) https://github.com/python/cpython/commit/46398fba4d66ad342cf2504ef947b5fb857423b2 -- nosy: +akuchling

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2020-02-12 Thread Maximilian Peters
Maximilian Peters added the comment: Ran into the same issue using Python 3.6.8 [GCC 5.4.0 20160609] on Linux. The same code worked on Windows 10 with Python 3.7 32-bit and 64-bit. -- nosy: +Maximilian Peters ___ Python tracker

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2019-11-15 Thread Arthit Suriyawongkul
Arthit Suriyawongkul added the comment: Confirmed this behavior on - Python 3.6.8 64-bit on Windows Server 2016 (AppVeyor "Visual Studio 2017" build environment) - Python 3.6.7 64-bit on Linux -- nosy: +Arthit Suriyawongkul ___ Python tracker

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2018-08-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: +Python 2.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2018-08-20 Thread William Schwartz
William Schwartz added the comment: I am also running into this problem. I'm not 100%, but I'm pretty sure that looping over sys.modules and accessing __warningregistry__ on each module triggers one of my module's __getattr__ functions (PEP 562), which in turn uses setuptools entry points

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2017-12-11 Thread kernc
Change by kernc : -- keywords: +patch pull_requests: +4699 stage: -> patch review ___ Python tracker ___

[issue29620] unittest.TestCase.assertWarns raises RuntimeEror if sys.modules changes size

2017-02-22 Thread kernc
New submission from kernc: If any of the objects in sys.modules is a module-like object that performs some additional imports in its __getattribute__ (as appropriate) handler, the following simple unit test test case: import unittest import warnings ... # Ensure one of the