[pypy-svn] pypy default: add a gc.collect() to fix the test
amauryfa
commits-noreply at bitbucket.org
Mon Mar 14 20:21:59 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r42637:84cb7b18e494
Date: 2011-03-14 19:36 +0100
http://bitbucket.org/pypy/pypy/changeset/84cb7b18e494/
Log: add a gc.collect() to fix the test
diff --git a/lib-python/modified-2.7.0/ctypes/test/test_refcounts.py b/lib-python/modified-2.7.0/ctypes/test/test_refcounts.py
--- a/lib-python/modified-2.7.0/ctypes/test/test_refcounts.py
+++ b/lib-python/modified-2.7.0/ctypes/test/test_refcounts.py
@@ -90,6 +90,7 @@
return a * b * 2
f = proto(func)
+ gc.collect()
a = sys.getrefcount(ctypes.c_int)
f(1, 2)
self.assertEqual(sys.getrefcount(ctypes.c_int), a)
More information about the Pypy-commit
mailing list