'When the function is compiled in object mode, a warning is
printed out.'

def test_object_mode(self):

    with warnings.catch_warnings(record=True) as wlist:
        warnings.simplefilter('always', config.NumbaWarning)
        cfunc = jit(f_sig, nogil=True)(object_f)
    self.assertTrue(any((((w.category is config.NumbaWarning) and ("Code    running    in    object    mode    won't    allow    parallel    execution" in str(w.message))) for w in wlist)), wlist)
    self.run_in_threads(cfunc, 2)
