Author: Tyler Wade <way...@gmail.com>
Branch: 
Changeset: r64757:235a08c4b2de
Date: 2013-05-09 21:50 -0500
http://bitbucket.org/pypy/pypy/changeset/235a08c4b2de/

Log:    Add to the remove docstring tests and fix a comment

diff --git a/lib-python/2.7/opcode.py b/lib-python/2.7/opcode.py
--- a/lib-python/2.7/opcode.py
+++ b/lib-python/2.7/opcode.py
@@ -193,6 +193,6 @@
 hasname.append(201)
 def_op('CALL_METHOD', 202)            # #args not including 'self'
 def_op('BUILD_LIST_FROM_ARG', 203)
-jrel_op('JUMP_IF_NOT_DEBUG', 204)     # Target address
+jrel_op('JUMP_IF_NOT_DEBUG', 204)     # Distance to target address
 
 del def_op, name_op, jrel_op, jabs_op
diff --git a/pypy/interpreter/astcompiler/test/test_compiler.py 
b/pypy/interpreter/astcompiler/test/test_compiler.py
--- a/pypy/interpreter/astcompiler/test/test_compiler.py
+++ b/pypy/interpreter/astcompiler/test/test_compiler.py
@@ -819,6 +819,9 @@
         def f2():
             'docstring'
             return 'docstring'
+        def f3():
+            'foo'
+            return 'bar'
         class C1():
             'docstring'
         class C2():
@@ -836,6 +839,9 @@
 
         yield self.check, dict_w, "f1.__doc__", None
         yield self.check, dict_w, "f2.__doc__", 'docstring'
+        yield self.check, dict_w, "f2()", 'docstring'
+        yield self.check, dict_w, "f3.__doc__", None
+        yield self.check, dict_w, "f3()", 'bar'
         yield self.check, dict_w, "C1.__doc__", None
         yield self.check, dict_w, "C2.__doc__", 'docstring'
         yield self.check, dict_w, "C3.field", 'not docstring'
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to