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

Function test_assert_eq_checks_scalars

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

Source from the content-addressed store, hash-verified

11
12@pytest.mark.skipif(bool(sys.flags.optimize), reason="Assertions disabled.")
13def 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
24def test_assert_eq_array():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected