Skip to content

Commit 9deff00

Browse files
committed
Remove values testing from test_mean()
1 parent 17e7537 commit 9deff00

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

array_api_tests/test_statistical_functions.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,7 @@ def test_mean(x, data):
6969
ph.assert_keepdimable_shape(
7070
"mean", out.shape, x.shape, _axes, kw.get("keepdims", False), **kw
7171
)
72-
for indices, out_idx in zip(sh.axes_ndindex(x.shape, _axes), sh.ndindex(out.shape)):
73-
mean = float(out[out_idx])
74-
assume(not math.isinf(mean)) # mean may become inf due to internal overflows
75-
elements = []
76-
for idx in indices:
77-
s = float(x[idx])
78-
elements.append(s)
79-
expected = sum(elements) / len(elements)
80-
ph.assert_scalar_equals("mean", float, out_idx, mean, expected)
72+
# Values testing mean is too finicky
8173

8274

8375
@given(

0 commit comments

Comments
 (0)