MCPcopy Create free account
hub / github.com/dask/dask / test_assert_eq_equal_nan

Function test_assert_eq_equal_nan

dask/array/tests/test_testing.py:49–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47
48
49def test_assert_eq_equal_nan():
50 a = da.from_array(np.array([1.0, np.nan]), chunks=2)
51 b = da.from_array(np.array([1.0, np.nan]), chunks=2)
52 # NaNs compare equal by default
53 assert_eq(a, b)
54 with pytest.raises(AssertionError):
55 assert_eq(a, b, equal_nan=False)

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected