Skip to content

Commit c629a64

Browse files
committed
Simplify test parametrization
1 parent a0e6878 commit c629a64

6 files changed

+12
-36
lines changed

cupy-xfails.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@ array_api_tests/test_creation_functions.py::test_asarray_arrays
1616

1717
# attributes are np.float32 instead of float
1818
# (see also https://github.com/data-apis/array-api/issues/405)
19-
array_api_tests/test_data_type_functions.py::test_finfo[float32-dtype]
20-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array]
21-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array.dtype]
22-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-dtype]
23-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array]
24-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array.dtype]
19+
array_api_tests/test_data_type_functions.py::test_finfo[float32]
20+
array_api_tests/test_data_type_functions.py::test_finfo[complex64]
2521

2622
# Some array attributes are missing, and we do not wrap the array object
2723
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]

dask-xfails.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ array_api_tests/test_creation_functions.py::test_eye
1414

1515
# attributes are np.float32 instead of float
1616
# (see also https://github.com/data-apis/array-api/issues/405)
17-
array_api_tests/test_data_type_functions.py::test_finfo[float32-dtype]
18-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array]
19-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array.dtype]
20-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-dtype]
21-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array]
22-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array.dtype]
17+
array_api_tests/test_data_type_functions.py::test_finfo[float32]
18+
array_api_tests/test_data_type_functions.py::test_finfo[complex64]
2319

2420
# out[-1]=dask.array<getitem ...> but should be some floating number
2521
# (I think the test is not forcing the op to be computed?)

numpy-1-21-xfails.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ array_api_tests/test_creation_functions.py::test_asarray_arrays
33

44
# attributes are np.float32 instead of float
55
# (see also https://github.com/data-apis/array-api/issues/405)
6-
array_api_tests/test_data_type_functions.py::test_finfo[float32-dtype]
7-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array]
8-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array.dtype]
9-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-dtype]
10-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array]
11-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array.dtype]
6+
array_api_tests/test_data_type_functions.py::test_finfo[float32]
7+
array_api_tests/test_data_type_functions.py::test_finfo[complex64]
128

139
# Array methods and attributes not already on np.ndarray cannot be wrapped
1410
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]

numpy-1-26-xfails.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# attributes are np.float32 instead of float
22
# (see also https://github.com/data-apis/array-api/issues/405)
3-
array_api_tests/test_data_type_functions.py::test_finfo[float32-dtype]
4-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array]
5-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array.dtype]
6-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-dtype]
7-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array]
8-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array.dtype]
3+
array_api_tests/test_data_type_functions.py::test_finfo[float32]
4+
array_api_tests/test_data_type_functions.py::test_finfo[complex64]
95

106
# Array methods and attributes not already on np.ndarray cannot be wrapped
117
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]

numpy-dev-xfails.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# attributes are np.float32 instead of float
22
# (see also https://github.com/data-apis/array-api/issues/405)
3-
array_api_tests/test_data_type_functions.py::test_finfo[float32-dtype]
4-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array]
5-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array.dtype]
6-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-dtype]
7-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array]
8-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array.dtype]
3+
array_api_tests/test_data_type_functions.py::test_finfo[float32]
4+
array_api_tests/test_data_type_functions.py::test_finfo[complex64]
95

106
# The test suite cannot properly get the signature for vecdot
117
# https://github.com/numpy/numpy/pull/26237

numpy-xfails.txt

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# attributes are np.float32 instead of float
22
# (see also https://github.com/data-apis/array-api/issues/405)
3-
array_api_tests/test_data_type_functions.py::test_finfo[float32-dtype]
4-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array]
5-
array_api_tests/test_data_type_functions.py::test_finfo[float32-array.dtype]
6-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-dtype]
7-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array]
8-
array_api_tests/test_data_type_functions.py::test_finfo[complex64-array.dtype]
3+
array_api_tests/test_data_type_functions.py::test_finfo[float32]
4+
array_api_tests/test_data_type_functions.py::test_finfo[complex64]
95

106
# The test suite cannot properly get the signature for vecdot
117
# https://github.com/numpy/numpy/pull/26237

0 commit comments

Comments
 (0)