def test_accel_nb_5(fn): """ JIT with function, with kwargs""" accel.has_numba = True fn = accel.try_jit(fn, nopython=True) fn() assert isinstance(fn, jitd_class) if jit_enabled: assert len(fn.nopython_signatures) > 0
def test_accel_no_nb(fn): """ Test function isn't JIT-ed if no numba """ accel.has_numba = False assert accel.try_jit(fn) is fn
def test_accel_nb_4(fn): """ JIT with function """ accel.has_numba = True assert isinstance(accel.try_jit(fn), jitd_class)