jit/metainterp/test/test_fficall.py::TestFfiCall::()::test_simple_call_longlong
self = <rpython.jit.metainterp.test.test_fficall.TestFfiCall object at 0x7f52a3f3ff90>
kwds = {'expected_call_release_gil_i': 1, 'supports_longlong': True}
maxint32 = 2147483647, a = 2147483648L, b = 2147483649L
def test_simple_call_longlong(self, **kwds):
kwds.setdefault('supports_longlong', True)
if is_64_bit:
kwds['expected_call_release_gil_i'] = kwds.pop('expected_call_release_gil', 1)
else:
kwds['expected_call_release_gil_f'] = kwds.pop('expected_call_release_gil', 1)
kwds['expected_call_release_gil_i'] = 0
maxint32 = 2147483647
a = r_longlong(maxint32) + 1
b = r_longlong(maxint32) + 2
> self._run([types.slonglong] * 2, types.slonglong, [a, b], a, **kwds)
jit/metainterp/test/test_fficall.py:200:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
jit/metainterp/test/test_fficall.py:142: in _run
with FakeFFI(fake_call_impl_any):
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <rpython.jit.metainterp.test.test_fficall.FakeFFI object at 0x7f52a3f3f9d0>
args = ()
def __enter__(self, *args):
> self.monkey.setattr(jit_libffi, 'jit_ffi_call_impl_any', self.fake_call_impl_any)
E AttributeError: 'generator' object has no attribute 'setattr'
jit/metainterp/test/test_fficall.py:40: AttributeError
builder: rpython-linux-x86-64 build #887
test: jit/metainterp/test/test_fficall/py/TestFfiCall/()/test_simple_call_longlong