Commits

Tyler Wade  committed 235a08c

Add to the remove docstring tests and fix a comment

  • Participants
  • Parent commits 773b31f

Comments (0)

Files changed (2)

File lib-python/2.7/opcode.py

 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

File pypy/interpreter/astcompiler/test/test_compiler.py

         def f2():
             'docstring'
             return 'docstring'
+        def f3():
+            'foo'
+            return 'bar'
         class C1():
             'docstring'
         class C2():
 
         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'