'Test converting a Numba type to a ctypes type.'

@tag('important')
def test_to_ctypes(self):

    def check(cty, ty):
        got = ctypes_utils.to_ctypes(ty)
        self.assertEqual(got, cty)
    self._conversion_tests(check)
    with self.assertRaises(TypeError) as raises:
        ctypes_utils.to_ctypes(types.ellipsis)
    self.assertIn("Cannot    convert    Numba    type    '...'    to    ctypes    type", str(raises.exception))
