(method, arr)
| 1130 | ], |
| 1131 | ) |
| 1132 | def test_push_dask(method, arr): |
| 1133 | import bottleneck |
| 1134 | import dask.array as da |
| 1135 | |
| 1136 | arr = np.array(arr) |
| 1137 | chunks = list(range(1, 11)) + [(1, 2, 3, 2, 2, 1, 1)] |
| 1138 | |
| 1139 | for n in [None, 1, 2, 3, 4, 5, 11]: |
| 1140 | expected = bottleneck.push(arr, axis=0, n=n) |
| 1141 | for c in chunks: |
| 1142 | with raise_if_dask_computes(): |
| 1143 | actual = push(da.from_array(arr, chunks=c), axis=0, n=n, method=method) |
| 1144 | np.testing.assert_equal(actual, expected) |
| 1145 | |
| 1146 | |
| 1147 | def test_extension_array_equality(categorical1, int1): |
nothing calls this directly
no test coverage detected
searching dependent graphs…