[Python-checkins] bpo-43960: test_pdb resets breakpoints (GH-25673)

vstinner webhook-mailer at python.org
Wed Apr 28 06:38:58 EDT 2021


https://github.com/python/cpython/commit/21b02b5f4018474620676be04310f7d230a464ea
commit: 21b02b5f4018474620676be04310f7d230a464ea
branch: master
author: Irit Katriel <iritkatriel at yahoo.com>
committer: vstinner <vstinner at python.org>
date: 2021-04-28T12:38:29+02:00
summary:

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.

files:
M Lib/test/test_pdb.py

diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index fb3941780b721..870eab4e33e63 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',



More information about the Python-checkins mailing list