From 02059d0d8f025724c08ff757baa6b48a579651ea Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Tue, 5 Mar 2024 16:17:20 -0700 Subject: [PATCH 1/2] Temporarily pin hypothesis on CI This is needed until https://github.com/data-apis/array-api-tests/issues/238 is fixed. --- .github/workflows/array-api-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/array-api-tests.yml b/.github/workflows/array-api-tests.yml index c7e2af5c..1a426a62 100644 --- a/.github/workflows/array-api-tests.yml +++ b/.github/workflows/array-api-tests.yml @@ -63,6 +63,7 @@ jobs: python -m pip install --upgrade pip python -m pip install '${{ inputs.package-name }} ${{ inputs.package-version }}' ${{ inputs.extra-requires }} python -m pip install -r ${GITHUB_WORKSPACE}/array-api-tests/requirements.txt + python -m pip install hypothesis==6.97.1 - name: Run the array API testsuite (${{ inputs.package-name }}) if: "! ((matrix.python-version == '3.11' && inputs.package-name == 'numpy' && contains(inputs.package-version, '1.21')) || (matrix.python-version == '3.8' && inputs.package-name == 'numpy' && contains(inputs.xfails-file-extra, 'dev')))" env: From 64d2485f8466e2ee635930b12e1349bc374d4590 Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Thu, 7 Mar 2024 14:49:35 -0700 Subject: [PATCH 2/2] Add some NumPy 1.12 xfails --- numpy-1-21-xfails.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/numpy-1-21-xfails.txt b/numpy-1-21-xfails.txt index 9a0d2827..1c38b209 100644 --- a/numpy-1-21-xfails.txt +++ b/numpy-1-21-xfails.txt @@ -80,6 +80,13 @@ array_api_tests/test_signatures.py::test_array_method_signature[__dlpack_device_ # qr() doesn't support matrix stacks array_api_tests/test_linalg.py::test_qr +# cross has some promotion bug that is fixed in newer numpy versions +array_api_tests/test_linalg.py::test_cross + +# vector_norm with ord=-1 which has since been fixed +# https://github.com/numpy/numpy/issues/21083 +array_api_tests/test_linalg.py::test_vector_norm + # argmax and argmin do not support keepdims array_api_tests/test_searching_functions.py::test_argmax array_api_tests/test_searching_functions.py::test_argmin