@@ -1981,30 +1981,6 @@ def test_pdb_ambiguous_statements():
19811981 (Pdb) continue
19821982 """
19831983
1984- def test_pdb_f_trace_lines ():
1985- """GH-80675
1986-
1987- pdb should work even if f_trace_lines is set to False on some frames.
1988-
1989- >>> reset_Breakpoint()
1990-
1991- >>> def test_function():
1992- ... import sys
1993- ... frame = sys._getframe()
1994- ... frame.f_trace_lines = False
1995- ... import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
1996- ... if frame.f_trace_lines != False:
1997- ... print("f_trace_lines is not reset after continue!")
1998-
1999- >>> with PdbTestInput([ # doctest: +NORMALIZE_WHITESPACE
2000- ... 'continue'
2001- ... ]):
2002- ... test_function()
2003- > <doctest test.test_pdb.test_pdb_f_trace_lines[1]>(5)test_function()
2004- -> import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
2005- (Pdb) continue
2006- """
2007-
20081984def test_pdb_frame_refleak ():
20091985 """
20101986 pdb should not leak reference to frames
@@ -2056,47 +2032,6 @@ def test_pdb_frame_refleak():
20562032 1
20572033 """
20582034
2059- def test_pdb_function_break ():
2060- """Testing the line number of break on function
2061-
2062- >>> def foo(): pass
2063-
2064- >>> def bar():
2065- ...
2066- ... pass
2067-
2068- >>> def boo():
2069- ... # comments
2070- ... global x
2071- ... x = 1
2072-
2073- >>> def gen():
2074- ... yield 42
2075-
2076- >>> def test_function():
2077- ... import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
2078-
2079- >>> with PdbTestInput([ # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
2080- ... 'break foo',
2081- ... 'break bar',
2082- ... 'break boo',
2083- ... 'break gen',
2084- ... 'continue'
2085- ... ]):
2086- ... test_function()
2087- > <doctest test.test_pdb.test_pdb_function_break[4]>(2)test_function()
2088- -> import pdb; pdb.Pdb(nosigint=True, readrc=False).set_trace()
2089- (Pdb) break foo
2090- Breakpoint ... at <doctest test.test_pdb.test_pdb_function_break[0]>:1
2091- (Pdb) break bar
2092- Breakpoint ... at <doctest test.test_pdb.test_pdb_function_break[1]>:3
2093- (Pdb) break boo
2094- Breakpoint ... at <doctest test.test_pdb.test_pdb_function_break[2]>:4
2095- (Pdb) break gen
2096- Breakpoint ... at <doctest test.test_pdb.test_pdb_function_break[3]>:2
2097- (Pdb) continue
2098- """
2099-
21002035def test_pdb_issue_gh_65052 ():
21012036 """See GH-65052
21022037
0 commit comments