Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r62805:33b07039f71d
Date: 2013-03-26 13:57 +0100
http://bitbucket.org/pypy/pypy/changeset/33b07039f71d/

Log:    Fix test.

diff --git a/rpython/translator/c/test/test_newgc.py 
b/rpython/translator/c/test/test_newgc.py
--- a/rpython/translator/c/test/test_newgc.py
+++ b/rpython/translator/c/test/test_newgc.py
@@ -421,13 +421,15 @@
                 i += 1
                 A()
             llop.gc__collect(lltype.Void)
-            llop.gc__collect(lltype.Void)
-            return b.num_deleted
+            res = b.num_deleted * 100
+            rgc.progress_through_finalizer_queue()
+            return res + b.num_deleted
         return f
 
     def test_framework_finalizer(self):
         res = self.run('framework_finalizer')
-        assert res == 6
+        # 6 objects, plus one for the FinalizeLater == 7
+        assert res == 307
 
     def define_del_catches(cls):
         def g():
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to