Author: Ronan Lamy <[email protected]>
Branch: py3.5
Changeset: r91989:0c11b9c793de
Date: 2017-07-28 16:49 +0100
http://bitbucket.org/pypy/pypy/changeset/0c11b9c793de/

Log:    Make cpyext cleanup more thorough

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
@@ -83,8 +83,9 @@
 
     def cleanup(self):
         self.space.getexecutioncontext().cleanup_cpyext_state()
-        rawrefcount._collect()
-        self.space.user_del_action._run_finalizers()
+        for _ in range(5):
+            rawrefcount._collect()
+            self.space.user_del_action._run_finalizers()
         leakfinder.stop_tracking_allocations(check=False)
         assert not self.space.finalizer_queue.next_dead()
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to