STINNER Victor <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue46465>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com