MCPcopy Create free account
hub / github.com/numpy/numpy / test_arr_weights_mismatch

Method test_arr_weights_mismatch

numpy/lib/tests/test_histograms.py:98–102  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 assert_equal(h, w[1:-1])
97
98 def test_arr_weights_mismatch(self):
99 a = np.arange(10) + .5
100 w = np.arange(11) + .5
101 with assert_raises_regex(ValueError, "same shape as"):
102 h, b = histogram(a, range=[1, 9], weights=w, density=True)
103
104
105 def test_type(self):

Callers

nothing calls this directly

Calls 2

assert_raises_regexFunction · 0.90
histogramFunction · 0.90

Tested by

no test coverage detected