[pypy-svn] r70411 - pypy/trunk/pypy/translator/c/test

arigo at codespeak.net arigo at codespeak.net
Tue Jan 5 10:59:27 CET 2010


Author: arigo
Date: Tue Jan  5 10:59:25 2010
New Revision: 70411

Modified:
   pypy/trunk/pypy/translator/c/test/test_genc.py
Log:
Add a gc.collect() as a tentative to avoid
random occasional failure of that test.


Modified: pypy/trunk/pypy/translator/c/test/test_genc.py
==============================================================================
--- pypy/trunk/pypy/translator/c/test/test_genc.py	(original)
+++ pypy/trunk/pypy/translator/c/test/test_genc.py	Tue Jan  5 10:59:25 2010
@@ -334,6 +334,7 @@
     f = compile(prob_with_pyobj, [object])
     from sys import getrefcount as g
     obj = None
+    import gc; gc.collect()
     before = g(obj)
     f(obj)
     after = g(obj)



More information about the Pypy-commit mailing list