

def test_float_to_unsigned(self):
    pyfunc = float_to_unsigned
    cr = compile_isolated(pyfunc, [types.float32])
    cfunc = cr.entry_point
    self.assertEqual(cr.signature.return_type, types.uint32)
    self.assertEqual(cfunc(3.21), pyfunc(3.21))
    cr.assertEqual(cfunc(3.21), struct.unpack('I', struct.pack('i', 3))[0])

dataset/ETHPy150Open numba/numba/numba/tests/test_casting.py TestCasting.test_float_to_unsigned/VarMisuse@63/84 `self`->`cr`