[pypy-svn] r79417 - pypy/trunk/pypy/rpython/test
arigo at codespeak.net
arigo at codespeak.net
Tue Nov 23 17:14:53 CET 2010
Author: arigo
Date: Tue Nov 23 17:14:51 2010
New Revision: 79417
Modified:
pypy/trunk/pypy/rpython/test/test_rclass.py
Log:
Add missing gc.collect().
Modified: pypy/trunk/pypy/rpython/test/test_rclass.py
==============================================================================
--- pypy/trunk/pypy/rpython/test/test_rclass.py (original)
+++ pypy/trunk/pypy/rpython/test/test_rclass.py Tue Nov 23 17:14:51 2010
@@ -917,6 +917,7 @@
assert destrptr is not None
def test_del_inheritance(self):
+ from pypy.rlib import rgc
class State:
pass
s = State()
@@ -937,6 +938,7 @@
A()
B()
C()
+ rgc.collect()
return s.a_dels * 10 + s.b_dels
res = f()
assert res == 42
@@ -1067,6 +1069,7 @@
assert meth.finalizer
def test_del_inheritance(self):
+ from pypy.rlib import rgc
class State:
pass
s = State()
@@ -1087,6 +1090,7 @@
A()
B()
C()
+ rgc.collect()
return s.a_dels * 10 + s.b_dels
res = f()
assert res == 42
More information about the Pypy-commit
mailing list