[pypy-svn] r25874 - pypy/dist/pypy/translator/c/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Apr 16 19:07:49 CEST 2006
Author: cfbolz
Date: Sun Apr 16 19:07:48 2006
New Revision: 25874
Modified:
pypy/dist/pypy/translator/c/test/test_newgc.py
Log:
make test a bit less brittle
Modified: pypy/dist/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_newgc.py (original)
+++ pypy/dist/pypy/translator/c/test/test_newgc.py Sun Apr 16 19:07:48 2006
@@ -209,7 +209,9 @@
fn = self.getcompiled(f)
res = fn()
assert res == 2
- assert len(self.t.graphs[0].startblock.exits[False].target.operations) == 10
+ operations = self.t.graphs[0].startblock.exits[False].target.operations
+ assert len([op for op in operations if op.opname == "gc_reload_possibly_moved"]) == 0
+
def test_framework_safe_pushpop(self):
class A(object):
pass
More information about the Pypy-commit
mailing list