[pypy-svn] r73300 - pypy/branch/cpython-extension/pypy/module/cpyext/test
xoraxax at codespeak.net
xoraxax at codespeak.net
Fri Apr 2 17:36:16 CEST 2010
Author: xoraxax
Date: Fri Apr 2 17:36:14 2010
New Revision: 73300
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py
Log:
Fix leaks by calling collect.
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/test/test_cpyext.py Fri Apr 2 17:36:14 2010
@@ -144,6 +144,8 @@
# check for sane refcnts
leaking = False
state = self.space.fromcache(State)
+ import gc
+ gc.collect()
lost_objects_w = identity_dict()
lost_objects_w.update((key, None) for key in self.frozen_refcounts.keys())
for w_obj, obj in state.py_objects_w2r.iteritems():
More information about the Pypy-commit
mailing list