@@ -2056,8 +2056,7 @@ def test_pdb_set_trace():
20562056
20572057 >>> try: runner.run(test)
20582058 ... finally: sys.stdin = real_stdin
2059- --Return--
2060- > <doctest foo-bar@baz[2]>(1)<module>()->None
2059+ > <doctest foo-bar@baz[2]>(1)<module>()
20612060 -> import pdb; pdb.set_trace()
20622061 (Pdb) print(x)
20632062 42
@@ -2087,8 +2086,7 @@ def test_pdb_set_trace():
20872086 ... runner.run(test)
20882087 ... finally:
20892088 ... sys.stdin = real_stdin
2090- --Return--
2091- > <doctest test.test_doctest.test_doctest.test_pdb_set_trace[9]>(3)calls_set_trace()->None
2089+ > <doctest test.test_doctest.test_doctest.test_pdb_set_trace[9]>(3)calls_set_trace()
20922090 -> import pdb; pdb.set_trace()
20932091 (Pdb) print(y)
20942092 2
@@ -2114,6 +2112,7 @@ def test_pdb_set_trace():
21142112 >>> test = parser.get_doctest(doc, globals(), "foo-bar@baz", "foo-bar@baz.py", 0)
21152113 >>> real_stdin = sys.stdin
21162114 >>> sys.stdin = FakeInput([
2115+ ... 'step', # return event of g
21172116 ... 'list', # list source from example 2
21182117 ... 'next', # return from g()
21192118 ... 'list', # list source from example 1
@@ -2124,6 +2123,9 @@ def test_pdb_set_trace():
21242123 >>> try: runner.run(test)
21252124 ... finally: sys.stdin = real_stdin
21262125 ... # doctest: +NORMALIZE_WHITESPACE
2126+ > <doctest foo-bar@baz[1]>(3)g()
2127+ -> import pdb; pdb.set_trace()
2128+ (Pdb) step
21272129 --Return--
21282130 > <doctest foo-bar@baz[1]>(3)g()->None
21292131 -> import pdb; pdb.set_trace()
@@ -2188,6 +2190,7 @@ def test_pdb_set_trace_nested():
21882190 >>> test = parser.get_doctest(doc, globals(), "foo-bar@baz", "foo-bar@baz.py", 0)
21892191 >>> real_stdin = sys.stdin
21902192 >>> sys.stdin = FakeInput([
2193+ ... 'step',
21912194 ... 'print(y)', # print data defined in the function
21922195 ... 'step', 'step', 'step', 'step', 'step', 'step', 'print(z)',
21932196 ... 'up', 'print(x)',
@@ -2201,6 +2204,9 @@ def test_pdb_set_trace_nested():
22012204 ... finally:
22022205 ... sys.stdin = real_stdin
22032206 ... # doctest: +REPORT_NDIFF
2207+ > <doctest test.test_doctest.test_doctest.test_pdb_set_trace_nested[0]>(4)calls_set_trace()
2208+ -> import pdb; pdb.set_trace()
2209+ (Pdb) step
22042210 > <doctest test.test_doctest.test_doctest.test_pdb_set_trace_nested[0]>(5)calls_set_trace()
22052211 -> self.f1()
22062212 (Pdb) print(y)
0 commit comments