diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a58f1841..2fab2072 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: - name: Run the test suite env: ARRAY_API_TESTS_MODULE: array_api_strict - ARRAY_API_STRICT_API_VERSION: 2023.12 + ARRAY_API_STRICT_API_VERSION: 2024.12 run: | pytest -v -rxXfE --skips-file array-api-strict-skips.txt array_api_tests/ # We also have internal tests that isn't really necessary for adopters diff --git a/array-api b/array-api index 25e71773..772fb461 160000 --- a/array-api +++ b/array-api @@ -1 +1 @@ -Subproject commit 25e717735b72c6b55080f48af634015d94833838 +Subproject commit 772fb461da6ff904ecfcac4a24676e40efcbdb0c diff --git a/array-api-strict-skips.txt b/array-api-strict-skips.txt index 0f266590..7cf114ee 100644 --- a/array-api-strict-skips.txt +++ b/array-api-strict-skips.txt @@ -5,4 +5,28 @@ array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -0 and x2_i > 0 # The test suite is incorrectly checking sums that have loss of significance # (https://github.com/data-apis/array-api-tests/issues/168) -array_api_tests/test_statistical_functions.py::test_sum \ No newline at end of file +array_api_tests/test_statistical_functions.py::test_sum + +# 2024.12 new failures, investigate +array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity] +array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity] +array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity] +array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity] +array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0] +array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0] +array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity] +array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity] +array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity] +array_api_tests/test_special_cases.py::test_binary[__floordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity] +array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0] +array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0] +array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity] +array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity] +array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity] +array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity] +array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0] +array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0] + +# 2024.12 new failure, ndim=0 not allowed in cumulative_prod +array_api_tests/test_special_cases.py::test_nan_propagation[cumulative_prod] + diff --git a/array_api_tests/__init__.py b/array_api_tests/__init__.py index f3805b56..d01af52d 100644 --- a/array_api_tests/__init__.py +++ b/array_api_tests/__init__.py @@ -86,7 +86,7 @@ def _from_dtype(*a, **kw): api_version = os.getenv( - "ARRAY_API_TESTS_VERSION", getattr(xp, "__array_api_version__", "2023.12") + "ARRAY_API_TESTS_VERSION", getattr(xp, "__array_api_version__", "2024.12") ) xps = array_api.make_strategies_namespace(xp, api_version=api_version)