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)
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