Example #1
0
    def testDtypeFromOut(self):
        x = array([-np.inf, 0., np.inf])
        y = array([2, 2, 2])

        t3 = isfinite(x, y)
        self.assertEqual(t3.dtype, y.dtype)
Example #2
0
def test_dtype_from_out():
    x = array([-np.inf, 0., np.inf])
    y = array([2, 2, 2])

    t3 = isfinite(x, y)
    assert t3.dtype == y.dtype