Commit 4c437191 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 2aa9d65c
...@@ -1792,7 +1792,7 @@ def test_pdb_set_trace_nested(): ...@@ -1792,7 +1792,7 @@ def test_pdb_set_trace_nested():
> <doctest foo[1]>(1)<module>() > <doctest foo[1]>(1)<module>()
-> calls_set_trace() -> calls_set_trace()
(Pdb) print(foo) (Pdb) print(foo)
*** NameError: name 'foo' is not defined *** NameError: NameError("name 'foo' is not defined",)
(Pdb) continue (Pdb) continue
(0, 2) (0, 2)
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment