This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Mark.Shannon, eric.snow, gvanrossum, kj, vstinner
Date 2022-01-22.02:18:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642817908.43.0.273139146679.issue46465@roundup.psfhosted.org>
In-reply-to
Content
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
---
History
Date User Action Args
2022-01-22 02:18:28vstinnersetrecipients: + vstinner, gvanrossum, Mark.Shannon, eric.snow, kj
2022-01-22 02:18:28vstinnersetmessageid: <1642817908.43.0.273139146679.issue46465@roundup.psfhosted.org>
2022-01-22 02:18:28vstinnerlinkissue46465 messages
2022-01-22 02:18:28vstinnercreate