Author: Ronan Lamy <[email protected]>
Branch: cpyext-leakchecking
Changeset: r92000:466144c090c7
Date: 2017-07-31 15:46 +0100
http://bitbucket.org/pypy/pypy/changeset/466144c090c7/
Log: Preload a few more builtin types
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
@@ -209,7 +209,10 @@
# 'import os' to warm up reference counts
w_import = space.builtin.getdictvalue(space, '__import__')
space.call_function(w_import, space.wrap("os"))
- for name in ['buffer', 'mmap.mmap']:
+ for name in [
+ 'buffer', 'mmap.mmap',
+ 'types.FunctionType', 'types.CodeType',
+ 'types.TracebackType', 'types.FrameType']:
preload(space, name)
for expr in ['type(str.join)']:
preload_expr(space, expr)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit