From: Irit Katriel Date: Wed, 28 Apr 2021 10:38:29 +0000 (+0100) Subject: bpo-43960: test_pdb resets breakpoints (GH-25673) X-Git-Tag: v3.10.0b1~121 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21b02b5f4018474620676be04310f7d230a464ea;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index fb3941780b72..870eab4e33e6 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1192,6 +1192,7 @@ def test_pdb_next_command_in_generator_for_loop(): ... print('value', i) ... x = 123 + >>> reset_Breakpoint() >>> with PdbTestInput(['break test_gen', ... 'continue', ... 'next',