]> granicus.if.org Git - python/commitdiff
Fix doctest failure introduced by r57949.
authorGuido van Rossum <guido@python.org>
Wed, 5 Sep 2007 03:26:38 +0000 (03:26 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 Sep 2007 03:26:38 +0000 (03:26 +0000)
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.

Lib/test/test_doctest.py

index ab0e1d09cb7308ed5e824501253775ef8ff530b6..250614ea480a497721350138f32c29e61fb56361 100644 (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)
 """