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.
This commit is contained in:
Guido van Rossum 2007-09-05 03:26:38 +00:00
parent 45c078736e
commit fd4a7de172
1 changed files with 1 additions and 1 deletions

View File

@ -1792,7 +1792,7 @@ def test_pdb_set_trace_nested():
> <doctest foo[1]>(1)<module>()
-> calls_set_trace()
(Pdb) print(foo)
*** NameError: name 'foo' is not defined
*** NameError: NameError("name 'foo' is not defined",)
(Pdb) continue
(0, 2)
"""