[issue30812] Running test_warnings twice fails
STINNER Victor
report at bugs.python.org
Fri Jun 30 06:49:03 EDT 2017
STINNER Victor added the comment:
Oh cool, my bisect tool identified the bug!
haypo at selma$ ./python -m test.bisect -o bisect test_warnings test_warnings
(...)
Tests (1):
* test.test_warnings._WarningsTests.test_showwarnmsg_missing
(...)
Bisection completed in 14 iterations and 0:00:14
So the bug is that test_showwarnmsg_missing() removes the warnings._showwarnmsg attribute, but don't restore it.
https://github.com/python/cpython/pull/2504 fixes the issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30812>
_______________________________________
More information about the Python-bugs-list
mailing list