MCPcopy Index your code
hub / github.com/numpy/numpy / test_unexpected_trim_value

Method test_unexpected_trim_value

numpy/lib/tests/test_function_base.py:1509–1512  ·  view source on GitHub ↗
(self, trim)

Source from the content-addressed store, hash-verified

1507
1508 @pytest.mark.parametrize("trim", ("front", ""))
1509 def test_unexpected_trim_value(self, trim):
1510 arr = self.a
1511 with pytest.raises(ValueError, match=r"unexpected character\(s\) in `trim`"):
1512 trim_zeros(arr, trim=trim)
1513
1514 @pytest.mark.parametrize("shape, axis", [
1515 [(5,), None],

Callers

nothing calls this directly

Calls 1

trim_zerosFunction · 0.90

Tested by

no test coverage detected