Author: Antonio Cuni <[email protected]>
Branch: cpyext-speedup-tests
Changeset: r98368:64ffef8c26a7
Date: 2019-12-23 19:03 +0100
http://bitbucket.org/pypy/pypy/changeset/64ffef8c26a7/
Log: use __code__ to be reduce the diff with py3.6
diff --git a/pypy/module/cpyext/test/test_cpyext.py
b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -141,7 +141,7 @@
# <types.py>
def _f(): pass
FunctionType = type(_f)
- CodeType = type(_f.func_code)
+ CodeType = type(_f.__code__)
try:
raise TypeError
except TypeError:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit