[pypy-commit] pypy default: Reimplement debug_collect() for -A
rlamy
pypy.commits at gmail.com
Wed Oct 5 13:31:48 EDT 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch:
Changeset: r87600:ef455a2a5660
Date: 2016-10-05 18:31 +0100
http://bitbucket.org/pypy/pypy/changeset/ef455a2a5660/
Log: Reimplement debug_collect() for -A
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
@@ -265,6 +265,13 @@
return sys_info.load_module(mod, name)
cls.w_load_module = w_load_module
+ def w_debug_collect(self):
+ import gc
+ gc.collect()
+ gc.collect()
+ gc.collect()
+ cls.w_debug_collect = w_debug_collect
+
def record_imported_module(self, name):
"""
More information about the pypy-commit
mailing list