Check NaN reductions like _nanmin and _nanmax
(library, X, reduction, expected)
| 432 | ], |
| 433 | ) |
| 434 | def test_nan_reductions(library, X, reduction, expected): |
| 435 | """Check NaN reductions like _nanmin and _nanmax""" |
| 436 | xp = pytest.importorskip(library) |
| 437 | |
| 438 | with config_context(array_api_dispatch=True): |
| 439 | result = reduction(xp.asarray(X)) |
| 440 | |
| 441 | result = move_to(result, xp=numpy, device="cpu") |
| 442 | assert_allclose(result, expected) |
| 443 | |
| 444 | |
| 445 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…