[Python-3000-checkins] r57983 - python/branches/py3k/Lib/test/test_doctest.py

guido.van.rossum python-3000-checkins at python.org
Wed Sep 5 05:26:38 CEST 2007


Author: guido.van.rossum
Date: Wed Sep  5 05:26:38 2007
New Revision: 57983

Modified:
   python/branches/py3k/Lib/test/test_doctest.py
Log:
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.


Modified: python/branches/py3k/Lib/test/test_doctest.py
==============================================================================
--- python/branches/py3k/Lib/test/test_doctest.py	(original)
+++ python/branches/py3k/Lib/test/test_doctest.py	Wed Sep  5 05:26:38 2007
@@ -1792,7 +1792,7 @@
     > <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)
 """


More information about the Python-3000-checkins mailing list