Message 392144 - Python tracker
I have a fix, I'll make a PR in a bit. The issue here is the breakpoint number: Breakpoint 1 at <doctest ... vs Breakpoint 2 at <doctest ... The breakpoint number is global state, so tests can impact each other. I recently added a reset_Breakpoint() function that can be used to clear the global state at the beginning of the test: https://github.com/python/cpython/pull/21989/files So I will make this test use it.