1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 8064c75 Merge

merge default

  • Participants
  • Parent commits ed9ae55, 24db669
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/interpreter/test/test_generator.py

View file
     w_co = space.appexec([], '''():
         def g(x):
             yield x + 5
-        return g.func_code
+        return g.__code__
     ''')
     assert should_not_inline(w_co) == False
     w_co = space.appexec([], '''():
         def g(x):
             yield x + 5
             yield x + 6
-        return g.func_code
+        return g.__code__
     ''')
     assert should_not_inline(w_co) == True