[issue46465] test_unittest: TestBreakSignalDefault.testInstallHandler() fails if run after TestBreak
STINNER Victor
report at bugs.python.org
Fri Jan 21 21:18:28 EST 2022
STINNER Victor <vstinner at python.org> added the comment:
Attached bug.py reproduces the bug without unittest, just run:
./python bug.py
On Python 3.10, it writes:
---
LOOP 0
LOOP 1
(...)
LOOP 14
LOOP 15
---
On the main branch, it fails with:
---
LOOP 0
LOOP 1
LOOP 2
LOOP 3
LOOP 4
LOOP 5
LOOP 6
LOOP 7
Traceback (most recent call last):
File "/home/vstinner/bug.py", line 24, in <module>
Bug().run()
^^^^^^^^^^^
File "/home/vstinner/bug.py", line 19, in run
raise Exception("bug")
^^^^^^^^^^^^^^^^^^^^^^
Exception: bug
---
----------
Added file: https://bugs.python.org/file50575/bug.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46465>
_______________________________________
More information about the Python-bugs-list
mailing list