()
| 11 | |
| 12 | @pytest.mark.skipif(bool(sys.flags.optimize), reason="Assertions disabled.") |
| 13 | def test_assert_eq_checks_scalars(): |
| 14 | # https://github.com/dask/dask/issues/2680 |
| 15 | with pytest.raises(AssertionError): |
| 16 | assert_eq(np.array(0), np.array(1)) |
| 17 | |
| 18 | a = da.from_array(np.array([0]), 1)[0] |
| 19 | b = np.array([1])[0] |
| 20 | with pytest.raises(AssertionError): |
| 21 | assert_eq(a, b) |
| 22 | |
| 23 | |
| 24 | def test_assert_eq_array(): |
nothing calls this directly
no test coverage detected