(self, dtype, mode)
| 109 | @pytest.mark.parametrize("dtype", list(np.typecodes["All"])[1:] + ["i,O"]) |
| 110 | @pytest.mark.parametrize("mode", ["raise", "wrap", "clip"]) |
| 111 | def test_empty(self, dtype, mode): |
| 112 | arr = np.zeros(1000, dtype=dtype) |
| 113 | arr_copy = arr.copy() |
| 114 | mask = np.random.randint(2, size=1000).astype(bool) |
| 115 | |
| 116 | # Allowing empty values like this is weird... |
| 117 | np.put(arr, mask, []) |
| 118 | assert_array_equal(arr, arr_copy) |
| 119 | |
| 120 | |
| 121 | class TestPut: |
nothing calls this directly
no test coverage detected