|
25 | 25 |
|
26 | 26 |
|
27 | 27 | @pytest.mark.parametrize(
|
28 |
| - 'in_arr, res', |
| 28 | + ('in_arr', 'res'), |
29 | 29 | [
|
30 | 30 | ([[-1, 0, 1], [np.inf, np.nan, -np.inf]], (-1, 1)),
|
31 | 31 | (np.array([[-1, 0, 1], [np.inf, np.nan, -np.inf]]), (-1, 1)),
|
|
36 | 36 | ([[np.nan, -1, 2], [-2, np.nan, 1]], (-2, 2)),
|
37 | 37 | ([[np.nan, -np.inf, 2], [-2, np.nan, np.inf]], (-2, 2)),
|
38 | 38 | ([[-np.inf, 2], [np.nan, 1]], (1, 2)), # good max case
|
39 |
| - ([[np.nan, -np.inf, 2], [-2, np.nan, np.inf]], (-2, 2)), |
40 | 39 | ([np.nan], (np.inf, -np.inf)),
|
41 | 40 | ([np.inf], (np.inf, -np.inf)),
|
42 | 41 | ([-np.inf], (np.inf, -np.inf)),
|
@@ -134,7 +133,7 @@ def test_a2f_nan2zero():
|
134 | 133 |
|
135 | 134 |
|
136 | 135 | @pytest.mark.parametrize(
|
137 |
| - 'in_type, out_type', |
| 136 | + ('in_type', 'out_type'), |
138 | 137 | [
|
139 | 138 | (np.int16, np.int16),
|
140 | 139 | (np.int16, np.int8),
|
@@ -163,7 +162,7 @@ def test_array_file_scales(in_type, out_type):
|
163 | 162 |
|
164 | 163 |
|
165 | 164 | @pytest.mark.parametrize(
|
166 |
| - 'category0, category1, overflow', |
| 165 | + ('category0', 'category1', 'overflow'), |
167 | 166 | [
|
168 | 167 | # Confirm that, for all ints and uints as input, and all possible outputs,
|
169 | 168 | # for any simple way of doing the calculation, the result is near enough
|
|
0 commit comments