[pypy-commit] pypy jit-leaner-frontend: fix test_random
fijal
pypy.commits at gmail.com
Fri Mar 25 09:28:38 EDT 2016
Author: fijal
Branch: jit-leaner-frontend
Changeset: r83359:0b0fac585895
Date: 2016-03-25 15:27 +0200
http://bitbucket.org/pypy/pypy/changeset/0b0fac585895/
Log: fix test_random
diff --git a/rpython/jit/backend/test/test_random.py b/rpython/jit/backend/test/test_random.py
--- a/rpython/jit/backend/test/test_random.py
+++ b/rpython/jit/backend/test/test_random.py
@@ -718,7 +718,7 @@
assert not hasattr(loop, '_targettoken')
for i in range(position):
op = loop.operations[i]
- if (not op.has_no_side_effect()
+ if (not rop.has_no_side_effect(op.opnum)
or op.type not in (INT, FLOAT)):
position = i
break # cannot move the LABEL later
More information about the pypy-commit
mailing list