]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43960: test_pdb resets breakpoints (GH-25673)
authorIrit Katriel <iritkatriel@yahoo.com>
Wed, 28 Apr 2021 10:38:29 +0000 (11:38 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Apr 2021 10:38:29 +0000 (12:38 +0200)
Reset global breakpoint state at the beginning of
test_pdb_next_command_in_generator_for_loop() to make it deterministic.

Lib/test/test_pdb.py

index fb3941780b721c66a7bd831bf5c1ba60f1093814..870eab4e33e6336a58234290724e02715706e44d 100644 (file)
@@ -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',