summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIrit Katriel <iritkatriel@yahoo.com>2021-04-28 11:38:29 +0100
committerGitHub <noreply@github.com>2021-04-28 12:38:29 +0200
commit21b02b5f4018474620676be04310f7d230a464ea (patch)
treeed0e691832e92305b1e4cfa03716dd908fc8d60e
parentdb0c5b786df961785ae8c803f5572ae0c8dadcc7 (diff)
downloadcpython-git-21b02b5f4018474620676be04310f7d230a464ea.tar.gz
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.
-rw-r--r--Lib/test/test_pdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index fb3941780b..870eab4e33 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',