[pypy-svn] r32321 - pypy/branch/kill-keepalives/pypy/translator/backendopt/test
mwh at codespeak.net
mwh at codespeak.net
Thu Sep 14 17:27:20 CEST 2006
Author: mwh
Date: Thu Sep 14 17:27:19 2006
New Revision: 32321
Modified:
pypy/branch/kill-keepalives/pypy/translator/backendopt/test/test_constfold.py
Log:
fix a test. not entirely sure how come this wasn't constant folded away
before...
Modified: pypy/branch/kill-keepalives/pypy/translator/backendopt/test/test_constfold.py
==============================================================================
--- pypy/branch/kill-keepalives/pypy/translator/backendopt/test/test_constfold.py (original)
+++ pypy/branch/kill-keepalives/pypy/translator/backendopt/test/test_constfold.py Thu Sep 14 17:27:19 2006
@@ -180,7 +180,7 @@
def fn():
return s1.sub.x
graph, t = get_graph(fn, [])
- assert summary(graph) == {'getsubstruct': 1, 'getfield': 1}
+ assert summary(graph) == {'getinteriorfield': 1}
constant_fold_graph(graph)
# kill all references to 's1'
@@ -188,7 +188,7 @@
del graph.func
import gc; gc.collect()
- assert summary(graph) == {'getfield': 1}
+ assert summary(graph) == {}
check_graph(graph, [], 1234, t)
More information about the Pypy-commit
mailing list