(self, dtype, mode)
| 122 | @pytest.mark.parametrize("dtype", list(np.typecodes["All"])[1:] + ["i,O"]) |
| 123 | @pytest.mark.parametrize("mode", ["raise", "wrap", "clip"]) |
| 124 | def test_empty(self, dtype, mode): |
| 125 | arr = np.zeros(1000, dtype=dtype) |
| 126 | arr_copy = arr.copy() |
| 127 | mask = np.random.randint(2, size=1000).astype(bool) |
| 128 | |
| 129 | # Allowing empty values like this is weird... |
| 130 | np.put(arr, mask, []) |
| 131 | assert_array_equal(arr, arr_copy) |
| 132 | |
| 133 | |
| 134 | class TestPut: |
nothing calls this directly
no test coverage detected