Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: fix-sre-problems
Changeset: r94158:30487ab1f380
Date: 2018-03-28 11:34 +0200
http://bitbucket.org/pypy/pypy/changeset/30487ab1f380/
Log: fix test for green fields
diff --git a/rpython/rlib/test/test_jit.py b/rpython/rlib/test/test_jit.py
--- a/rpython/rlib/test/test_jit.py
+++ b/rpython/rlib/test/test_jit.py
@@ -225,8 +225,10 @@
def test_green_field(self):
def get_printable_location(xfoo):
return str(ord(xfoo)) # xfoo must be annotated as a character
- myjitdriver = JitDriver(greens=['x.foo'], reds=['n', 'x'],
+ # green fields are disabled!
+ pytest.raises(ValueError, JitDriver, greens=['x.foo'], reds=['n', 'x'],
get_printable_location=get_printable_location)
+ return
class A(object):
_immutable_fields_ = ['foo']
def fn(n):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit