From 787b14f020aac9def9230975c10aa5b1f878e5cb Mon Sep 17 00:00:00 2001 From: Aaron Meurer Date: Fri, 19 Jan 2024 14:47:03 -0700 Subject: [PATCH] Remove xfail for test_square https://github.com/data-apis/array-api-tests/issues/190 has been fixed. --- cupy-xfails.txt | 4 ---- numpy-1-21-xfails.txt | 28 ++++++++++++---------------- numpy-xfails.txt | 4 ---- torch-xfails.txt | 4 ---- 4 files changed, 12 insertions(+), 28 deletions(-) diff --git a/cupy-xfails.txt b/cupy-xfails.txt index 6e34c650..5fcc9d23 100644 --- a/cupy-xfails.txt +++ b/cupy-xfails.txt @@ -56,10 +56,6 @@ array_api_tests/test_statistical_functions.py::test_max # (https://github.com/data-apis/array-api-tests/issues/171) array_api_tests/test_signatures.py::test_func_signature[meshgrid] -# testsuite issue with test_square -# https://github.com/data-apis/array-api-tests/issues/190 -array_api_tests/test_operators_and_elementwise_functions.py::test_square - # We cannot add array attributes array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__] array_api_tests/test_signatures.py::test_array_method_signature[__index__] diff --git a/numpy-1-21-xfails.txt b/numpy-1-21-xfails.txt index 4cebd0f7..9a0d2827 100644 --- a/numpy-1-21-xfails.txt +++ b/numpy-1-21-xfails.txt @@ -50,9 +50,18 @@ array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -infinity and x array_api_tests/test_special_cases.py::test_iop[__ipow__(x1_i is -0 and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0] array_api_tests/meta/test_hypothesis_helpers.py::test_symmetric_matrices -# testsuite issue with test_square -# https://github.com/data-apis/array-api-tests/issues/190 -array_api_tests/test_operators_and_elementwise_functions.py::test_square +# fft functions are not yet supported +# (https://github.com/data-apis/array-api-compat/issues/67) +array_api_tests/test_fft.py::test_fft +array_api_tests/test_fft.py::test_ifft +array_api_tests/test_fft.py::test_fftn +array_api_tests/test_fft.py::test_ifftn +array_api_tests/test_fft.py::test_rfft +array_api_tests/test_fft.py::test_irfft +array_api_tests/test_fft.py::test_rfftn +array_api_tests/test_fft.py::test_irfftn +array_api_tests/test_fft.py::test_hfft +array_api_tests/test_fft.py::test_ihfft # NumPy 1.21 specific XFAILS ############################ @@ -236,16 +245,3 @@ array_api_tests/test_special_cases.py::test_binary[remainder(x1_i is +0 and x2_i array_api_tests/test_special_cases.py::test_binary[remainder(x1_i is -0 and x2_i < 0) -> -0] array_api_tests/test_special_cases.py::test_binary[remainder(x1_i is -0 and x2_i > 0) -> +0] array_api_tests/test_special_cases.py::test_iop[__iadd__(x1_i is -0 and x2_i is -0) -> -0] - -# fft functions are not yet supported -# (https://github.com/data-apis/array-api-compat/issues/67) -array_api_tests/test_fft.py::test_fft -array_api_tests/test_fft.py::test_ifft -array_api_tests/test_fft.py::test_fftn -array_api_tests/test_fft.py::test_ifftn -array_api_tests/test_fft.py::test_rfft -array_api_tests/test_fft.py::test_irfft -array_api_tests/test_fft.py::test_rfftn -array_api_tests/test_fft.py::test_irfftn -array_api_tests/test_fft.py::test_hfft -array_api_tests/test_fft.py::test_ihfft diff --git a/numpy-xfails.txt b/numpy-xfails.txt index 1de2f755..c541602b 100644 --- a/numpy-xfails.txt +++ b/numpy-xfails.txt @@ -40,10 +40,6 @@ array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is -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] -# testsuite issue with test_square -# https://github.com/data-apis/array-api-tests/issues/190 -array_api_tests/test_operators_and_elementwise_functions.py::test_square - # https://github.com/numpy/numpy/issues/21213 array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -infinity and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +infinity] array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -0 and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0] diff --git a/torch-xfails.txt b/torch-xfails.txt index 69932f2a..caf1aa65 100644 --- a/torch-xfails.txt +++ b/torch-xfails.txt @@ -171,10 +171,6 @@ array_api_tests/test_special_cases.py::test_iop[__imod__(x1_i is +0 and x2_i < 0 array_api_tests/test_special_cases.py::test_iop[__imod__(x1_i is -0 and x2_i > 0) -> +0] array_api_tests/test_special_cases.py::test_unary[sign(x_i is NaN) -> NaN] -# testsuite issue with test_square -# https://github.com/data-apis/array-api-tests/issues/190 -array_api_tests/test_operators_and_elementwise_functions.py::test_square - # Float correction is not supported by pytorch # (https://github.com/data-apis/array-api-tests/issues/168) array_api_tests/test_special_cases.py::test_empty_arrays[std]