Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: cpyext-leakchecking
Changeset: r91956:a733270b6626
Date: 2017-07-22 23:11 +0200
http://bitbucket.org/pypy/pypy/changeset/a733270b6626/

Log:    progress

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
@@ -142,6 +142,12 @@
         w_obj = space.appexec([], code)
     make_ref(space, w_obj)
 
+def preload_expr(space, expr):
+    from pypy.module.cpyext.pyobject import make_ref
+    code = "(): return {}".format(expr)
+    w_obj = space.appexec([], code)
+    make_ref(space, w_obj)
+
 
 class AppTestCpythonExtensionBase(LeakCheckingTest):
 
@@ -158,6 +164,8 @@
             space.call_function(w_import, space.wrap("os"))
             for name in ['buffer', 'mmap.mmap']:
                 preload(space, name)
+            for expr in ['type(str.join)']:
+                preload_expr(space, expr)
             #state = cls.space.fromcache(RefcountState) ZZZ
             #state.non_heaptypes_w[:] = []
             cls.w_debug_collect = space.wrap(interp2app(debug_collect))
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to