8000 BUG: test failures on 32-bit platforms: i686 Linux and armv7l · Issue #24548 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
BUG: test failures on 32-bit platforms: i686 Linux and armv7l #24548
Open
@misuzu

Description

@misuzu

Proposed new feature or change:

Is it possible to run tests suite for 32-bit platforms in CI so it won't regress?

Here are tests failures for numpy 1.25.1 on i686-linux (32-bit userspace on 64-bit kernel):

FAILED lib/python3.10/site-packages/numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ValueError: Maximum allowed dimension exceeded
FAILED lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow - AssertionError: FloatingPointError not raised by divmod
FAILED lib/python3.10/site-packages/numpy/f2py/tests/test_kind.py::TestKind::test_int - AssertionError: selectedintkind(19): expected 16 but got -1
= 3 failed, 35327 passed, 1637 skipped, 1308 deselected, 30 xfailed, 5 xpassed, 341 warnings in 280.71s (0:04:40) =

Detailed output:

lib/python3.10/site-packages/numpy/typing/tests/test_runtime.py::TestRuntimeProtocol::test_issubclass[_NestedSequence] PASSED [100%]

=================================== FAILURES ===================================
_______________ TestUfunc.test_identityless_reduction_huge_array _______________

self = <numpy.core.tests.test_ufunc.TestUfunc object at 0xdb5bb418>

    @requires_memory(6 * 1024**3)
    def test_identityless_reduction_huge_array(self):
        # Regression test for gh-20921 (copying identity incorrectly failed)
>       arr = np.zeros((2, 2**31), 'uint8')
E       ValueError: Maximum allowed dimension exceeded

self       = <numpy.core.tests.test_ufunc.TestUfunc object at 0xdb5bb418>

lib/python3.10/site-packages/numpy/core/tests/test_ufunc.py:1622: ValueError
_________________ TestRemainder.test_float_remainder_overflow __________________

self = <numpy.core.tests.test_umath.TestRemainder object at 0xdb6e98c8>

    @pytest.mark.skipif(IS_WASM, reason="fp errors don't work in wasm")
    def test_float_remainder_overflow(self):
        a = np.finfo(np.float64).tiny
        with np.errstate(over='ignore', invalid='ignore'):
            div, mod = np.divmod(4, a)
            np.isinf(div)
            assert_(mod == 0)
        with np.errstate(over='raise', invalid='ignore'):
            assert_raises(FloatingPointError, np.divmod, 4, a)
        with np.errstate(invalid='raise', over='ignore'):
>           assert_raises(FloatingPointError, np.divmod, 4, a)

a          = 2.2250738585072014e-308
div        = inf
mod        = 0.0
self       = <numpy.core.tests.test_umath.TestRemainder object at 0xdb6e98c8>

lib/python3.10/site-packages/numpy/core/tests/test_umath.py:828: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../8hiddxp62lqzs9mrlizhn96akvzhvm39-python3-3.10.12/lib/python3.10/unittest/case.py:738: in assertRaises
    return context.handle('assertRaises', args, kwargs)
        args       = (<ufunc 'divmod'>, 4, 2.2250738585072014e-308)
        context    = None
        expected_exception = <class 'FloatingPointError'>
        kwargs     = {}
        self       = <numpy.testing._private.utils._Dummy testMethod=nop>
../8hiddxp62lqzs9mrlizhn96akvzhvm39-python3-3.10.12/lib/python3.10/unittest/case.py:200: in handle
    with self:
        args       = [4, 2.2250738585072014e-308]
        callable_obj = <ufunc 'divmod'>
        kwargs     = {}
        name       = 'assertRaises'
        self       = None
../8hiddxp62lqzs9mrlizhn96akvzhvm39-python3-3.10.12/lib/python3.10/unittest/case.py:223: in __exit__
    self._raiseFailure("{} not raised by {}".format(exc_name,
        exc_name   = 'FloatingPointError'
        exc_type   = None
        exc_value  = None
        self       = <unittest.case._AssertRaisesContext object at 0xc6dde5b0>
        tb         = None
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <unittest.case._AssertRaisesContext object at 0xc6dde5b0>
standardMsg = 'FloatingPointError not raised by divmod'

    def _raiseFailure(self, standardMsg):
        msg = self.test_case._formatMessage(self.msg, standardMsg)
>       raise self.test_case.failureException(msg)
E       AssertionError: FloatingPointError not raised by divmod

msg        = 'FloatingPointError not raised by divmod'
self       = <unittest.case._AssertRaisesContext object at 0xc6dde5b0>
standardMsg = 'FloatingPointError not raised by divmod'

../8hiddxp62lqzs9mrlizhn96akvzhvm39-python3-3.10.12/lib/python3.10/unittest/case.py:163: AssertionError
______________________________ TestKind.test_int _______________________________

self = <numpy.f2py.tests.test_kind.TestKind object at 0xda77e400>

    def test_int(self):
        """Test `int` kind_func for integers up to 10**40."""
        selectedintkind = self.module.selectedintkind
    
        for i in range(40):
>           assert selectedintkind(i) == selected_int_kind(
                i
            ), f"selectedintkind({i}): expected {selected_int_kind(i)!r} but got {selectedintkind(i)!r}"
E           AssertionError: selectedintkind(19): expected 16 but got -1
E           assert -1 == 16
E            +  where -1 = <fortran function selectedintkind>(19)
E            +  and   16 = selected_int_kind(19)

i          = 19
selectedintkind = <fortran function selectedintkind>
self       = <numpy.f2py.tests.test_kind.TestKind object at 0xda77e400>

lib/python3.10/site-packages/numpy/f2py/tests/test_kind.py:20: AssertionError
=============================== warnings summary ===============================
lib/python3.10/site-packages/numpy/core/tests/test_numeric.py::TestNonarrayArgs::test_dunder_round_edgecases[2147483647--1]
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/core/tests/test_numeric.py:200: RuntimeWarning: invalid value encountered in cast
    assert_equal(round(val, ndigits), round(np.int32(val), ndigits))

lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/core/tests/test_umath.py:1935: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    x_f64 = np.float64(x_f32)

lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/core/tests/test_umath.py:1944: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert_array_max_ulp(myfunc(x_f64), np.float64(y_true128),

lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestAVXUfuncs::test_avx_based_ufunc
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/core/tests/test_umath.py:1940: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert_equal(myfunc(x_f64), np.float64(y_true128))

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:16: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123])) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:17: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([[123]])) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:18: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "b")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:19: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "h")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "i")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:21: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "l")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:22: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "B")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:23: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "f")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py: 20 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_integer.py:24: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert t(array([123], "d")) == 123

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:23: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234])) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:24: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([[234]])) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:25: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234]).astype("b")) + 22) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:26: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234], "h")) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:27: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234], "i")) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:28: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234], "l")) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:29: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234], "B")) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:30: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234], "f")) - 234.0) <= err

lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py: 16 warnings
  /nix/store/qs1ipdxdi47r3a0b5dgcqsxxs5rn9n4y-python3.10-numpy-1.25.1/lib/python3.10/site-packages/numpy/f2py/tests/test_return_real.py:31: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    assert abs(t(array([234], "d")) - 234.0) <= err

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED lib/python3.10/site-packages/numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ValueError: Maximum allowed dimension exceeded
FAILED lib/python3.10/site-packages/numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow - AssertionError: FloatingPointError not raised by divmod
FAILED lib/python3.10/site-packages/numpy/f2py/tests/test_kind.py::TestKind::test_int - AssertionError: selectedintkind(19): expected 16 but got -1
= 3 failed, 35327 passed, 1637 skipped, 1308 deselected, 30 xfailed, 5 xpassed, 341 warnings in 280.71s (0:04:40) =

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0