[pypy-commit] pypy jit-leaner-frontend: fix a stupid test
fijal
pypy.commits at gmail.com
Tue Mar 22 14:25:57 EDT 2016
Author: fijal
Branch: jit-leaner-frontend
Changeset: r83268:89e98a074346
Date: 2016-03-22 20:23 +0200
http://bitbucket.org/pypy/pypy/changeset/89e98a074346/
Log: fix a stupid test
diff --git a/rpython/jit/metainterp/test/test_resoperation.py b/rpython/jit/metainterp/test/test_resoperation.py
--- a/rpython/jit/metainterp/test/test_resoperation.py
+++ b/rpython/jit/metainterp/test/test_resoperation.py
@@ -74,13 +74,9 @@
#assert re.match("guard_no_exception\(descr=<.+>\)$", repr(op))
def test_can_malloc():
- a = ConstInt(1)
- b = ConstInt(2)
- mydescr = AbstractDescr()
- assert rop.ResOperation(rop.rop.NEW, []).can_malloc()
- call = rop.ResOperation(rop.rop.CALL_N, [a, b], descr=mydescr)
- assert call.can_malloc()
- assert not rop.ResOperation(rop.rop.INT_ADD, [a, b]).can_malloc()
+ assert rop.rop.can_malloc(rop.rop.NEW)
+ assert rop.rop.can_malloc(rop.rop.CALL_N)
+ assert not rop.rop.can_malloc(rop.rop.INT_ADD)
def test_get_deep_immutable_oplist():
a = ConstInt(1)
More information about the pypy-commit
mailing list