(self)
| 1536 | err_msg=name) |
| 1537 | |
| 1538 | def test_ticket_1434(self): |
| 1539 | # Check that the out= argument in var and std has an effect |
| 1540 | data = np.array(((1, 2, 3), (4, 5, 6), (7, 8, 9))) |
| 1541 | out = np.zeros((3,)) |
| 1542 | |
| 1543 | ret = data.var(axis=1, out=out) |
| 1544 | assert_(ret is out) |
| 1545 | assert_array_equal(ret, data.var(axis=1)) |
| 1546 | |
| 1547 | ret = data.std(axis=1, out=out) |
| 1548 | assert_(ret is out) |
| 1549 | assert_array_equal(ret, data.std(axis=1)) |
| 1550 | |
| 1551 | def test_complex_nan_maximum(self): |
| 1552 | cnan = complex(0, np.nan) |
nothing calls this directly
no test coverage detected