Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

jit/metainterp/test/test_fficall.py::TestFfiCall::()::test_simple_call_float

self = <rpython.jit.metainterp.test.test_fficall.TestFfiCall object at 0x7f52a3f8f6d0>
kwds = {'expected_call_release_gil_f': 1, 'expected_call_release_gil_i': 0, 'supports_floats': True}

    def test_simple_call_float(self, **kwds):
        kwds.setdefault('supports_floats', True)
        kwds['expected_call_release_gil_f'] = kwds.pop('expected_call_release_gil', 1)
        kwds['expected_call_release_gil_i'] = 0
>       self._run([types.double] * 2, types.double, [45.6, 78.9], -4.2, **kwds)

jit/metainterp/test/test_fficall.py:188: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 0x7f52a3f3fd10>
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_float