Author: Armin Rigo <[email protected]>
Branch: gc-del
Changeset: r62747:7ef9ac5bf2d6
Date: 2013-03-25 19:04 +0100
http://bitbucket.org/pypy/pypy/changeset/7ef9ac5bf2d6/

Log:    Relax the test, allowing now several finalizers to be called by the
        same gc.collect() --- but still checking that the order is correct.

diff --git a/rpython/memory/test/snippet.py b/rpython/memory/test/snippet.py
--- a/rpython/memory/test/snippet.py
+++ b/rpython/memory/test/snippet.py
@@ -56,6 +56,7 @@
             def finalize(self):
                 assert state.age[self.key] == -1
                 state.age[self.key] = state.time
+                state.time += 1
                 state.progress = True
 
         def build_example(input):
@@ -73,7 +74,7 @@
             while i < len(examples):
                 input, components, strict = examples[i]
                 build_example(input)
-                while state.time < len(letters):
+                while state.time < 2 * len(letters):
                     state.progress = False
                     llop.gc__collect(lltype.Void)
                     if not state.progress:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to