[pypy-commit] pypy ssa-flow: fix test

rlamy noreply at buildbot.pypy.org
Sun Nov 16 00:21:59 CET 2014


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: ssa-flow
Changeset: r74533:76bc6682de8d
Date: 2014-11-15 22:06 +0000
http://bitbucket.org/pypy/pypy/changeset/76bc6682de8d/

Log:	fix test

diff --git a/rpython/translator/backendopt/test/test_escape.py b/rpython/translator/backendopt/test/test_escape.py
--- a/rpython/translator/backendopt/test/test_escape.py
+++ b/rpython/translator/backendopt/test/test_escape.py
@@ -111,7 +111,10 @@
         a.x = 12
         return a1.x
     t, adi, graph = build_adi(fn6, [int])
-    avar = graph.startblock.exits[0].target.inputargs[1]
+    graph.show()
+    op = graph.startblock.exits[0].target.operations[0]
+    assert op.opname == 'setfield'
+    avar = op.args[0]
     state = adi.getstate(avar)
     assert len(state.creation_points) == 2
     for crep in state.creation_points:
@@ -179,7 +182,7 @@
     t, adi, graph = build_adi(f, [])
     g_graph = graphof(t, g)
     a0var = graph.startblock.operations[0].result
-    b0var = graph.startblock.operations[3].result 
+    b0var = graph.startblock.operations[3].result
     a0state = adi.getstate(a0var)
     b0state = adi.getstate(b0var)
     a0crep, = a0state.creation_points


More information about the pypy-commit mailing list