diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 74253b338f6..895be02c919 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -614,6 +614,8 @@ def test_next_until_return_at_return_event(): ... test_function_2() ... end = 1 + >>> from bdb import Breakpoint + >>> Breakpoint.next = 1 >>> with PdbTestInput(['break test_function_2', ... 'continue', ... 'return', diff --git a/Misc/NEWS b/Misc/NEWS index 27eb224c3e1..2892678d695 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -832,6 +832,9 @@ Documentation Tests ----- +- Issue #20746: Fix test_pdb to run in refleak mode (-R). Patch by Xavier + de Gaye. + - Issue #22060: test_ctypes has been somewhat cleaned up and simplified; it now uses unittest test discovery to find its tests.