def METHOD_NAME(self, dtype):
    """
    Test 1 / 0 and 0 / 0.
    """
    f = vectorize(nopython=True)(truediv)
    a = np.array([5., 6., 0., 8.], dtype=dtype)
    b = np.array([1., 0., 0., 4.], dtype=dtype)
    expected = np.array([5., float('inf'), float('nan'), 2.])
    with self.check_warnings(["divide by zero encountered",
                              "invalid value encountered"]):
        res = f(a, b)
        self.assertPreciseEqual(res, expected)