def testAllReduction(self): o = tensor([False]) with self.assertRaises(ValueError): all([-1, 4, 5], out=o)
def test_all_reduction(): o = tensor([False]) with pytest.raises(ValueError): all([-1, 4, 5], out=o)