Author: Ronan Lamy <[email protected]>
Branch: exc-later
Changeset: r76445:4ef7e35ad896
Date: 2015-03-15 02:49 +0000
http://bitbucket.org/pypy/pypy/changeset/4ef7e35ad896/

Log:    fix ovfcheck test

diff --git a/rpython/translator/test/test_simplify.py 
b/rpython/translator/test/test_simplify.py
--- a/rpython/translator/test/test_simplify.py
+++ b/rpython/translator/test/test_simplify.py
@@ -71,9 +71,8 @@
     graph, _ = translate(f, [int, int])
     assert len(graph.startblock.operations) == 1
     assert graph.startblock.operations[0].opname == 'int_floordiv_ovf_zer'
-    assert len(graph.startblock.exits) == 3
-    assert [link.target.operations for link in graph.startblock.exits[1:]] == \
-           [(), ()]
+    assert len(graph.startblock.exits) == 2
+    assert graph.startblock.exits[1].target is graph.returnblock
 
 def test_remove_direct_call_without_side_effects():
     def f(x):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to