[Python-checkins] python/dist/src/Lib/test test_doctest.py, 1.4.14.2, 1.4.14.3

jhylton@users.sourceforge.net jhylton at users.sourceforge.net
Mon Oct 10 17:50:45 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20137

Modified Files:
      Tag: ast-branch
	test_doctest.py 
Log Message:
Compiler now generates the name "<module>" instead of "?"


Index: test_doctest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_doctest.py,v
retrieving revision 1.4.14.2
retrieving revision 1.4.14.3
diff -u -d -r1.4.14.2 -r1.4.14.3
--- test_doctest.py	7 Jan 2005 06:58:52 -0000	1.4.14.2
+++ test_doctest.py	10 Oct 2005 15:50:41 -0000	1.4.14.3
@@ -1556,11 +1556,11 @@
 
     >>> try: doctest.debug_src(s)
     ... finally: sys.stdin = real_stdin
-    > <string>(1)?()
+    > <string>(1)<module>()
     (Pdb) next
     12
     --Return--
-    > <string>(1)?()->None
+    > <string>(1)<module>()->None
     (Pdb) print x
     12
     (Pdb) continue
@@ -1598,7 +1598,7 @@
       >>> try: runner.run(test)
       ... finally: sys.stdin = real_stdin
       --Return--
-      > <doctest foo[1]>(1)?()->None
+      > <doctest foo[1]>(1)<module>()->None
       -> import pdb; pdb.set_trace()
       (Pdb) print x
       42
@@ -1634,7 +1634,7 @@
       (Pdb) print y
       2
       (Pdb) up
-      > <doctest foo[1]>(1)?()
+      > <doctest foo[1]>(1)<module>()
       -> calls_set_trace()
       (Pdb) print x
       1
@@ -1683,7 +1683,7 @@
       [EOF]
       (Pdb) next
       --Return--
-      > <doctest foo[2]>(1)?()->None
+      > <doctest foo[2]>(1)<module>()->None
       -> f(3)
       (Pdb) list
         1  -> f(3)
@@ -1776,7 +1776,7 @@
     (Pdb) print y
     1
     (Pdb) up
-    > <doctest foo[1]>(1)?()
+    > <doctest foo[1]>(1)<module>()
     -> calls_set_trace()
     (Pdb) print foo
     *** NameError: name 'foo' is not defined



More information about the Python-checkins mailing list