Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd4a7de

Browse files
committed
Fix doctest failure introduced by r57949.
The formatting of errors from pdb's own print command is different from the formatting of errors when pdb exec's an arbitrary command; the introduction of print as a pdb command caused this test to use the former instead of the latter, causing the test to fail.
1 parent 45c0787 commit fd4a7de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_doctest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ def test_pdb_set_trace_nested():
17921792
> <doctest foo[1]>(1)<module>()
17931793
-> calls_set_trace()
17941794
(Pdb) print(foo)
1795-
*** NameError: name 'foo' is not defined
1795+
*** NameError: NameError("name 'foo' is not defined",)
17961796
(Pdb) continue
17971797
(0, 2)
17981798
"""

0 commit comments

Comments
 (0)