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

Function test__validate_normalize_axes_01

dask/array/tests/test_gufunc.py:67–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def test__validate_normalize_axes_01():
68 with pytest.raises(ValueError):
69 _validate_normalize_axes([(1, 0)], None, False, [("i", "j")], ("j",))
70
71 with pytest.raises(ValueError):
72 _validate_normalize_axes([0, 0], None, False, [("i", "j")], ("j",))
73
74 with pytest.raises(ValueError):
75 _validate_normalize_axes([(0,), 0], None, False, [("i", "j")], ("j",))
76
77 i, o = _validate_normalize_axes([(1, 0), 0], None, False, [("i", "j")], ("j",))
78 assert i == [(1, 0)]
79 assert o == [(0,)]
80
81
82def test__validate_normalize_axes_02():

Callers

nothing calls this directly

Calls 1

_validate_normalize_axesFunction · 0.90

Tested by

no test coverage detected