[pypy-commit] pypy stm: (arigo, antocuni) fix test which failed after the renaming of stm_become_inevitable

antocuni noreply at buildbot.pypy.org
Mon Jan 16 17:53:42 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: stm
Changeset: r51353:c3ebb4f01089
Date: 2012-01-16 16:33 +0100
http://bitbucket.org/pypy/pypy/changeset/c3ebb4f01089/

Log:	(arigo, antocuni) fix test which failed after the renaming of
	stm_become_inevitable

diff --git a/pypy/translator/stm/test/test_transform.py b/pypy/translator/stm/test/test_transform.py
--- a/pypy/translator/stm/test/test_transform.py
+++ b/pypy/translator/stm/test/test_transform.py
@@ -150,7 +150,7 @@
         return p.x
     interp, graph = get_interpreter(func, [p])
     transform_graph(graph)
-    assert summary(graph) == {'stm_try_inevitable': 1, 'getfield': 1}
+    assert summary(graph) == {'stm_become_inevitable': 1, 'getfield': 1}
     res = eval_stm_graph(interp, graph, [p], stm_mode="regular_transaction",
                          final_stm_mode="inevitable_transaction")
     assert res == 42
@@ -163,7 +163,7 @@
         p.x = 43
     interp, graph = get_interpreter(func, [p])
     transform_graph(graph)
-    assert summary(graph) == {'stm_try_inevitable': 1, 'setfield': 1}
+    assert summary(graph) == {'stm_become_inevitable': 1, 'setfield': 1}
     eval_stm_graph(interp, graph, [p], stm_mode="regular_transaction",
                    final_stm_mode="inevitable_transaction")
 
@@ -175,7 +175,7 @@
         return p[3]
     interp, graph = get_interpreter(func, [p])
     transform_graph(graph)
-    assert summary(graph) == {'stm_try_inevitable': 1, 'getarrayitem': 1}
+    assert summary(graph) == {'stm_become_inevitable': 1, 'getarrayitem': 1}
     res = eval_stm_graph(interp, graph, [p], stm_mode="regular_transaction",
                          final_stm_mode="inevitable_transaction")
     assert res == 42


More information about the pypy-commit mailing list