(f, a, d)
| 5498 | a = np.ma.array(d, mask=m) |
| 5499 | |
| 5500 | def testaxis(f, a, d): |
| 5501 | numpy_f = numpy.__getattribute__(f) |
| 5502 | ma_f = np.ma.__getattribute__(f) |
| 5503 | |
| 5504 | # test axis arg |
| 5505 | assert_equal(ma_f(a, axis=1)[..., :-1], numpy_f(d[..., :-1], axis=1)) |
| 5506 | assert_equal(ma_f(a, axis=(0, 1))[..., :-1], |
| 5507 | numpy_f(d[..., :-1], axis=(0, 1))) |
| 5508 | |
| 5509 | def testkeepdims(f, a, d): |
| 5510 | numpy_f = numpy.__getattribute__(f) |
nothing calls this directly
no test coverage detected