From 9e99acc439cdf8892b32b2920a010d35c58d76e4 Mon Sep 17 00:00:00 2001 From: Irit Katriel Date: Wed, 28 Apr 2021 11:38:29 +0100 Subject: [PATCH] bpo-43960: test_pdb resets breakpoints (GH-25673) Reset global breakpoint state at the beginning of test_pdb_next_command_in_generator_for_loop() to make it deterministic. (cherry picked from commit 21b02b5f4018474620676be04310f7d230a464ea) Co-authored-by: Irit Katriel --- Lib/test/test_pdb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 0da449e33e98b65..ea5bb3b44c5f0e9 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1127,6 +1127,7 @@ def test_pdb_next_command_in_generator_for_loop(): ... print('value', i) ... x = 123 + >>> reset_Breakpoint() >>> with PdbTestInput(['break test_gen', ... 'continue', ... 'next',