[issue43960] test_pdb fails when only some tests are run
Irit Katriel
report at bugs.python.org
Tue Apr 27 18:47:30 EDT 2021
Irit Katriel <iritkatriel at yahoo.com> added the comment:
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.
----------
nosy: +iritkatriel
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43960>
_______________________________________
More information about the Python-bugs-list
mailing list