scipy: BUG: test failures in 1.15.2, Guix

Describe your issue.

Hi,

Running the test suite (fast tests) in 1.15.2, I see these errors and warnings:

=========================== short test summary info ============================
FAILED interpolate/tests/test_bary_rational.py::TestAAA::test_basic_functions[<lambda>-3.5e-13-0]
FAILED interpolate/tests/test_bary_rational.py::TestAAA::test_basic_functions[<lambda>-8e-13-0]
FAILED optimize/tests/test__differential_evolution.py::TestDifferentialEvolutionSolver::test_L4
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_jn-False]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_jn-True]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_in-False]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_in-True]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_yn-False]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_yn-True]
FAILED stats/tests/test_morestats.py::TestCircFuncs::test_circmean_accuracy_tiny_input[numpy]
ERROR datasets/tests/test_data.py::TestDatasets::test_existence_all - Permiss...
ERROR datasets/tests/test_data.py::TestDatasets::test_ascent - PermissionErro...
ERROR datasets/tests/test_data.py::TestDatasets::test_face - PermissionError:...
ERROR datasets/tests/test_data.py::TestDatasets::test_electrocardiogram - Per...
= 10 failed, 58754 passed, 3750 skipped, 194 xfailed, 11 xpassed, 2587 warnings, 4 errors in 62.40s (0:01:02) =

Part of the problem is that this is in a containerized environment cut from Internet access, and the test suite doesn’t gracefully handle this (by skipping tests requiring connectivity, for example).

The rest of the failure appear to be related to tolerances. See the log below.

Reproducing Code Example

Run the test suite in a minimal environment containing:

gcc@11.4.0 gfortran@11.4.0 meson-python@0.17.1 openblas@0.3.20 pkg-config@0.29.2 pybind11@2.13.6
+ python-click@8.1.7 python-cython-next@3.0.11 python-doit@0.36.0 python-hypothesis@6.54.5
+ python-intersphinx-registry@0.2501.23 python-jupyterlite-sphinx@0.9.3 python-jupytext@1.15.0 python-matplotlib@3.8.2
+ python-mpmath@1.2.1 python-mypy@1.13.0 python-myst-parser@4.0.1 python-numpy@1.24.4 python-numpydoc@1.5.0
+ python-pooch@1.8.2 python-pycodestyle@2.12.1 python-pydevtool@0.3.0 python-pytest-cov@6.0.0
+ python-pytest-timeout@2.3.1 python-pytest-xdist@3.6.1 python-pytest@8.3.3 python-pythran@0.17.0
+ python-rich-click@1.6.1 python-sphinx-copybutton@0.5.2 python-sphinx-design@0.6.1 python-sphinx@7.4.7
+ python-threadpoolctl@3.1.0 python-typing-extensions@4.12.2 texinfo@6.8

Error message

==================================== ERRORS ====================================
______________ ERROR at setup of TestDatasets.test_existence_all _______________
[gw0] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:262: in make_local_storage
    os.makedirs(path, exist_ok=True)
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter/.cache'
        mode       = 511
        name       = '/homeless-shelter/.cache/scipy-data'
        tail       = 'scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter'
        mode       = 511
        name       = '/homeless-shelter/.cache'
        tail       = '.cache'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:225: in makedirs
    mkdir(name, mode)
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
        exist_ok   = True
        head       = '/'
        mode       = 511
        name       = '/homeless-shelter'
        tail       = 'homeless-shelter'

The above exception was the direct cause of the following exception:
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/tests/test_data.py:35: in test_download_all
    download_all()
        self       = <scipy.datasets.tests.test_data.TestDatasets object at 0x7ffee0af4580>
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/_download_all.py:42: in download_all
    pooch.retrieve(url=_registry.registry_urls[dataset_name],
        dataset_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        dataset_name = 'ascent.dat'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/core.py:227: in retrieve
    make_local_storage(path)
        action     = 'download'
        downloader = None
        fname      = 'ascent.dat'
        full_path  = PosixPath('/homeless-shelter/.cache/scipy-data/ascent.dat')
        known_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
        processor  = None
        progressbar = False
        url        = 'https://raw.githubusercontent.com/scipy/dataset-ascent/main/ascent.dat'
        verb       = 'Downloading'
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:276: in make_local_storage
    raise PermissionError(" ".join(message)) from error
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter' | Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'. Will not be able to download data files.
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
__________________ ERROR at setup of TestDatasets.test_ascent __________________
[gw0] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:262: in make_local_storage
    os.makedirs(path, exist_ok=True)
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter/.cache'
        mode       = 511
        name       = '/homeless-shelter/.cache/scipy-data'
        tail       = 'scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter'
        mode       = 511
        name       = '/homeless-shelter/.cache'
        tail       = '.cache'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:225: in makedirs
    mkdir(name, mode)
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
        exist_ok   = True
        head       = '/'
        mode       = 511
        name       = '/homeless-shelter'
        tail       = 'homeless-shelter'

The above exception was the direct cause of the following exception:
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/tests/test_data.py:35: in test_download_all
    download_all()
        self       = <scipy.datasets.tests.test_data.TestDatasets object at 0x7ffee0af4580>
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/_download_all.py:42: in download_all
    pooch.retrieve(url=_registry.registry_urls[dataset_name],
        dataset_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        dataset_name = 'ascent.dat'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/core.py:227: in retrieve
    make_local_storage(path)
        action     = 'download'
        downloader = None
        fname      = 'ascent.dat'
        full_path  = PosixPath('/homeless-shelter/.cache/scipy-data/ascent.dat')
        known_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
        processor  = None
        progressbar = False
        url        = 'https://raw.githubusercontent.com/scipy/dataset-ascent/main/ascent.dat'
        verb       = 'Downloading'
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:276: in make_local_storage
    raise PermissionError(" ".join(message)) from error
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter' | Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'. Will not be able to download data files.
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
___________________ ERROR at setup of TestDatasets.test_face ___________________
[gw0] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:262: in make_local_storage
    os.makedirs(path, exist_ok=True)
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter/.cache'
        mode       = 511
        name       = '/homeless-shelter/.cache/scipy-data'
        tail       = 'scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter'
        mode       = 511
        name       = '/homeless-shelter/.cache'
        tail       = '.cache'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:225: in makedirs
    mkdir(name, mode)
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
        exist_ok   = True
        head       = '/'
        mode       = 511
        name       = '/homeless-shelter'
        tail       = 'homeless-shelter'

The above exception was the direct cause of the following exception:
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/tests/test_data.py:35: in test_download_all
    download_all()
        self       = <scipy.datasets.tests.test_data.TestDatasets object at 0x7ffee0af4580>
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/_download_all.py:42: in download_all
    pooch.retrieve(url=_registry.registry_urls[dataset_name],
        dataset_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        dataset_name = 'ascent.dat'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/core.py:227: in retrieve
    make_local_storage(path)
        action     = 'download'
        downloader = None
        fname      = 'ascent.dat'
        full_path  = PosixPath('/homeless-shelter/.cache/scipy-data/ascent.dat')
        known_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
        processor  = None
        progressbar = False
        url        = 'https://raw.githubusercontent.com/scipy/dataset-ascent/main/ascent.dat'
        verb       = 'Downloading'
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:276: in make_local_storage
    raise PermissionError(" ".join(message)) from error
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter' | Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'. Will not be able to download data files.
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
____________ ERROR at setup of TestDatasets.test_electrocardiogram _____________
[gw0] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:262: in make_local_storage
    os.makedirs(path, exist_ok=True)
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter/.cache'
        mode       = 511
        name       = '/homeless-shelter/.cache/scipy-data'
        tail       = 'scipy-data'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:215: in makedirs
    makedirs(head, exist_ok=exist_ok)
        exist_ok   = True
        head       = '/homeless-shelter'
        mode       = 511
        name       = '/homeless-shelter/.cache'
        tail       = '.cache'
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/os.py:225: in makedirs
    mkdir(name, mode)
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter'
        exist_ok   = True
        head       = '/'
        mode       = 511
        name       = '/homeless-shelter'
        tail       = 'homeless-shelter'

The above exception was the direct cause of the following exception:
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/tests/test_data.py:35: in test_download_all
    download_all()
        self       = <scipy.datasets.tests.test_data.TestDatasets object at 0x7ffee0af4580>
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/datasets/_download_all.py:42: in download_all
    pooch.retrieve(url=_registry.registry_urls[dataset_name],
        dataset_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        dataset_name = 'ascent.dat'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/core.py:227: in retrieve
    make_local_storage(path)
        action     = 'download'
        downloader = None
        fname      = 'ascent.dat'
        full_path  = PosixPath('/homeless-shelter/.cache/scipy-data/ascent.dat')
        known_hash = '03ce124c1afc880f87b55f6b061110e2e1e939679184f5614e38dacc6c1957e2'
        path       = PosixPath('/homeless-shelter/.cache/scipy-data')
        processor  = None
        progressbar = False
        url        = 'https://raw.githubusercontent.com/scipy/dataset-ascent/main/ascent.dat'
        verb       = 'Downloading'
/gnu/store/4bkaxyzzhhwgvk3nyicr4lygi2xwqpmj-python-pooch-1.8.2/lib/python3.10/site-packages/pooch/utils.py:276: in make_local_storage
    raise PermissionError(" ".join(message)) from error
E   PermissionError: [Errno 13] Permission denied: '/homeless-shelter' | Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'. Will not be able to download data files.
        action     = 'create'
        env        = None
        message    = ["[Errno 13] Permission denied: '/homeless-shelter'", "| Pooch could not create data cache folder '/homeless-shelter/.cache/scipy-data'.", 'Will not be able to download data files.']
        path       = '/homeless-shelter/.cache/scipy-data'
=================================== FAILURES ===================================
_______________ TestAAA.test_basic_functions[<lambda>-3.5e-13-0] _______________
[gw16] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/interpolate/tests/test_bary_rational.py:211: in test_basic_functions
    assert_allclose(AAA(UNIT_INTERVAL, func(UNIT_INTERVAL))(PTS),
        atol       = 3.5e-13
        f          = array([0.36787944, 0.3171211 , 0.26740607, ..., 0.26740607, 0.3171211 ,
       0.36787944])
        func       = <function TestAAA.<lambda> at 0x7ffedae13130>
        rtol       = 0
        self       = <scipy.interpolate.tests.test_bary_rational.TestAAA object at 0x7ffeda835ba0>
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=0, atol=3.5e-13
E   
E   Mismatched elements: 8 / 1001 (0.799%)
E   Max absolute difference: 2.49331222e-12
E   Max relative difference: 1.30932544e+278
E    x: array([0.367879, 0.317121, 0.267406, ..., 0.267406, 0.317121, 0.367879])
E    y: array([0.367879, 0.317121, 0.267406, ..., 0.267406, 0.317121, 0.367879])
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec2ca7a30>, array([0.36787944, 0.3171211 , 0.26740607, ..., 0.2674...211 ,
       0.36787944]), array([0.36787944, 0.3171211 , 0.26740607, ..., 0.26740607, 0.3171211 ,
       0.36787944]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=0, atol=3.5e-13', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ TestAAA.test_basic_functions[<lambda>-8e-13-0] ________________
[gw16] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/interpolate/tests/test_bary_rational.py:211: in test_basic_functions
    assert_allclose(AAA(UNIT_INTERVAL, func(UNIT_INTERVAL))(PTS),
        atol       = 8e-13
        f          = array([3.72007598e-44, 1.53109787e-38, 1.18476388e-33, ...,
       1.18476388e-33, 1.53109787e-38, 3.72007598e-44])
        func       = <function TestAAA.<lambda> at 0x7ffedae131c0>
        rtol       = 0
        self       = <scipy.interpolate.tests.test_bary_rational.TestAAA object at 0x7ffeda835ab0>
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=0, atol=8e-13
E   
E   Mismatched elements: 4 / 1001 (0.4%)
E   Max absolute difference: 1.32272547e-12
E   Max relative difference: 1.08758201e+25
E    x: array([3.720076e-44, 1.665195e-13, 1.129322e-12, ..., 5.221163e-14,
E          4.283181e-14, 3.720076e-44])
E    y: array([3.720076e-44, 1.531098e-38, 1.184764e-33, ..., 1.184764e-33,
E          1.531098e-38, 3.720076e-44])
        args       = (<function assert_allclose.<locals>.compare at 0x7ffff56d4af0>, array([3.72007598e-44, 1.66519450e-13, 1.12932173e-12,...), array([3.72007598e-44, 1.53109787e-38, 1.18476388e-33, ...,
       1.18476388e-33, 1.53109787e-38, 3.72007598e-44]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=0, atol=8e-13', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
___________________ TestDifferentialEvolutionSolver.test_L4 ____________________
[gw30] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/optimize/tests/test__differential_evolution.py:1252: in test_L4
    assert_allclose(res.fun, f_opt, atol=0.001)
        A          = array([[ 0.    ,  0.    ,  0.    ,  0.0025,  0.    ,  0.0025,  0.    ,
         0.    ],
       [ 0.    ,  0.    ,  0.... ,  0.0025,
         0.    ],
       [ 0.    ,  0.    ,  0.    ,  0.    , -0.01  ,  0.    ,  0.    ,
         0.01  ]])
        L          = <scipy.optimize._constraints.LinearConstraint object at 0x7ffec2dacf40>
        N          = <scipy.optimize._constraints.NonlinearConstraint object at 0x7ffec2dacc40>
        b          = array([1, 1, 1])
        bounds     = [(100, 10000), (1000, 10000), (1000, 10000), (10, 1000), (10, 1000), (10, 1000), ...]
        c1         = <function TestDifferentialEvolutionSolver.test_L4.<locals>.c1 at 0x7ffec2d7aa70>
        constraints = (<scipy.optimize._constraints.LinearConstraint object at 0x7ffec2dacf40>, <scipy.optimize._constraints.NonlinearConstraint object at 0x7ffec2dacc40>)
        f          = <function TestDifferentialEvolutionSolver.test_L4.<locals>.f at 0x7ffec2d7bd00>
        f_opt      = 7049.248
        res        =              message: Optimization terminated successfully.
             success: True
                 fun: 8099.0577...000e+00,  0.000e+00]), array([ 0.000e+00,  0.000e+00,  0.000e+00])]
    constr_violation: 0.0
               maxcv: 0.0
        self       = <scipy.optimize.tests.test__differential_evolution.TestDifferentialEvolutionSolver object at 0x7ffecfdb1ab0>
        sup        = <numpy.testing._private.utils.suppress_warnings object at 0x7ffec2dad480>
        x_opt      = [579.306692, 1359.97063, 5109.9707, 182.0177, 295.601172, 217.9823, ...]
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0.001
E   
E   Mismatched elements: 1 / 1 (100%)
E   Max absolute difference: 1049.80977247
E   Max relative difference: 0.14892507
E    x: array(8099.057772)
E    y: array(7049.248)
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec3f04670>, array(8099.05777247), array(7049.248))
        func       = <function assert_array_compare at 0x7ffff4063d00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0.001', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ test_negative_real_gh14582[spherical_jn-False] ________________
[gw12] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/special/tests/test_spherical_bessel.py:400: in test_negative_real_gh14582
    np.testing.assert_allclose(res, ref.real)
        derivative = False
        fun        = <function spherical_jn at 0x7fff63138e50>
        n          = array([8, 6, 6, 3, 3, 1, 5, 0, 8, 2, 5, 6, 4, 5, 5, 7, 7, 9, 8, 1, 0, 2,
       3, 7, 7])
        ref        = array([ 1.33434350e-11+0.j, -6.01829396e-05+0.j,  7.43288491e-07+0.j,
        1.09101691e-03+0.j,  1.56513908e-04+0.j,... 9.75072419e-01+0.j,
        1.08880113e-05+0.j,  5.83533816e-05+0.j,  7.75854670e-10+0.j,
        4.71809330e-08+0.j])
        res        = array([ 1.33434350e-11,  6.01829396e-05,  7.43288491e-07,  1.09101691e-03,
        1.56513908e-04, -1.17654333e-01, -2...1, -1.86191001e-01,
        9.75072419e-01,  1.08880113e-05, -5.83533816e-05, -7.75854670e-10,
        4.71809330e-08])
        rng        = Generator(PCG64) at 0x7FFEC3ECE500
        size       = 25
        z          = array([ 0.38285242, -1.43447118,  0.68356944,  0.4878164 ,  0.25454741,
       -0.35751171, -0.01182935, -0.52620127, ...331428,  1.45428959,  0.43904986, -0.57761642,
        0.38819698,  0.01277975, -0.1830999 , -0.39793208,  0.71665979])
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0
E   
E   Mismatched elements: 10 / 25 (40%)
E   Max absolute difference: 1.90897346
E   Max relative difference: 2.
E    x: array([ 1.334343e-11,  6.018294e-05,  7.432885e-07,  1.091017e-03,
E           1.565139e-04, -1.176543e-01, -2.228319e-14,  9.544867e-01,
E           1.264344e-09,  4.546973e-03, -7.837373e-07,  3.365227e-08,...
E    y: array([ 1.334343e-11, -6.018294e-05,  7.432885e-07,  1.091017e-03,
E           1.565139e-04,  1.176543e-01,  2.228319e-14, -9.544867e-01,
E           1.264344e-09, -4.546973e-03,  7.837373e-07, -3.365227e-08,...
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec3918310>, array([ 1.33434350e-11,  6.01829396e-05,  7.43288491e-...,  1.86191001e-01,
        9.75072419e-01,  1.08880113e-05,  5.83533816e-05,  7.75854670e-10,
        4.71809330e-08]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ test_negative_real_gh14582[spherical_jn-True] _________________
[gw12] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/special/tests/test_spherical_bessel.py:400: in test_negative_real_gh14582
    np.testing.assert_allclose(res, ref.real)
        derivative = True
        fun        = <function spherical_jn at 0x7fff63138e50>
        n          = array([8, 6, 6, 3, 3, 1, 5, 0, 8, 2, 5, 6, 4, 5, 5, 7, 7, 9, 8, 1, 0, 2,
       3, 7, 7])
        ref        = array([ 2.78552514e-10+0.j,  2.45926245e-04+0.j,  6.49024634e-06+0.j,
        6.65031770e-03+0.j,  1.84018441e-03+0.j,...-1.27459457e-01-0.j,
        1.70392725e-03+0.j, -9.54903290e-04+0.j, -1.36298444e-08+0.j,
        4.58849288e-07+0.j])
        res        = array([ 2.78552514e-10, -2.45926245e-04,  6.49024634e-06,  6.65031770e-03,
        1.84018441e-03,  3.20648791e-01,  9...0,  3.00626153e-01,
       -1.27459457e-01,  1.70392725e-03,  9.54903290e-04,  1.36298444e-08,
        4.58849288e-07])
        rng        = Generator(PCG64) at 0x7FFEC3ECDC40
        size       = 25
        z          = array([ 0.38285242, -1.43447118,  0.68356944,  0.4878164 ,  0.25454741,
       -0.35751171, -0.01182935, -0.52620127, ...331428,  1.45428959,  0.43904986, -0.57761642,
        0.38819698,  0.01277975, -0.1830999 , -0.39793208,  0.71665979])
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0
E   
E   Mismatched elements: 10 / 25 (40%)
E   Max absolute difference: 0.64129758
E   Max relative difference: 2.
E    x: array([ 2.785525e-10, -2.459262e-04,  6.490246e-06,  6.650318e-03,
E           1.840184e-03,  3.206488e-01,  9.418585e-12,  1.705916e-01,
E           1.489672e-08, -3.456593e-02,  1.022052e-05, -4.946892e-07,...
E    y: array([ 2.785525e-10,  2.459262e-04,  6.490246e-06,  6.650318e-03,
E           1.840184e-03, -3.206488e-01, -9.418585e-12, -1.705916e-01,
E           1.489672e-08,  3.456593e-02, -1.022052e-05,  4.946892e-07,...
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec39180d0>, array([ 2.78552514e-10, -2.45926245e-04,  6.49024634e-..., -3.00626153e-01,
       -1.27459457e-01,  1.70392725e-03, -9.54903290e-04, -1.36298444e-08,
        4.58849288e-07]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ test_negative_real_gh14582[spherical_in-False] ________________
[gw12] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/special/tests/test_spherical_bessel.py:400: in test_negative_real_gh14582
    np.testing.assert_allclose(res, ref.real)
        derivative = False
        fun        = <function spherical_in at 0x7fff631391b0>
        n          = array([8, 6, 6, 3, 3, 1, 5, 0, 8, 2, 5, 6, 4, 5, 5, 7, 7, 9, 8, 1, 0, 2,
       3, 7, 7])
        ref        = array([ 1.34467713e-11+0.00000000e+00j, -6.90323166e-05+4.22701028e-21j,
        7.66807242e-07+0.00000000e+00j,  1.12...+00j,
        5.85711570e-05-3.58644900e-21j,  7.83115289e-10-4.79519816e-26j,
        4.86281087e-08+0.00000000e+00j])
        res        = array([ 1.34467713e-11,  6.90323166e-05,  7.66807242e-07,  1.12024883e-03,
        1.57644777e-04, -1.20700714e-01, -2...1, -1.99039704e-01,
        1.02530608e+00,  1.08882654e-05, -5.85711570e-05, -7.83115289e-10,
        4.86281087e-08])
        rng        = Generator(PCG64) at 0x7FFEC3ECFE60
        size       = 25
        z          = array([ 0.38285242, -1.43447118,  0.68356944,  0.4878164 ,  0.25454741,
       -0.35751171, -0.01182935, -0.52620127, ...331428,  1.45428959,  0.43904986, -0.57761642,
        0.38819698,  0.01277975, -0.1830999 , -0.39793208,  0.71665979])
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0
E   
E   Mismatched elements: 10 / 25 (40%)
E   Max absolute difference: 2.09358216
E   Max relative difference: 2.
E    x: array([ 1.344677e-11,  6.903232e-05,  7.668072e-07,  1.120249e-03,
E           1.576448e-04, -1.207007e-01, -2.228343e-14,  1.046791e+00,
E           1.295208e-09,  4.591713e-03, -7.926099e-07,  3.402671e-08,...
E    y: array([ 1.344677e-11, -6.903232e-05,  7.668072e-07,  1.120249e-03,
E           1.576448e-04,  1.207007e-01,  2.228343e-14, -1.046791e+00,
E           1.295208e-09, -4.591713e-03,  7.926099e-07, -3.402671e-08,...
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec3918a60>, array([ 1.34467713e-11,  6.90323166e-05,  7.66807242e-...,  1.99039704e-01,
        1.02530608e+00,  1.08882654e-05,  5.85711570e-05,  7.83115289e-10,
        4.86281087e-08]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ test_negative_real_gh14582[spherical_in-True] _________________
[gw12] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/special/tests/test_spherical_bessel.py:400: in test_negative_real_gh14582
    np.testing.assert_allclose(res, ref.real)
        derivative = True
        fun        = <function spherical_in at 0x7fff631391b0>
        n          = array([8, 6, 6, 3, 3, 1, 5, 0, 8, 2, 5, 6, 4, 5, 5, 7, 7, 9, 8, 1, 0, 2,
       3, 7, 7])
        ref        = array([ 2.81251633e-10+0.00000000e+00j,  2.95292412e-04-1.80814454e-20j,
        6.76549659e-06+0.00000000e+00j,  6.94...+00j,
       -9.60850194e-04+5.88351057e-20j, -1.37940575e-08+8.44642416e-25j,
        4.77023520e-07+0.00000000e+00j])
        res        = array([ 2.81251633e-10, -2.95292412e-04,  6.76549659e-06,  6.94994176e-03,
        1.86239775e-03,  3.46212360e-01,  9...0,  3.67365761e-01,
        1.31359521e-01,  1.70400676e-03,  9.60850194e-04,  1.37940575e-08,
        4.77023520e-07])
        rng        = Generator(PCG64) at 0x7FFEC3ECE420
        size       = 25
        z          = array([ 0.38285242, -1.43447118,  0.68356944,  0.4878164 ,  0.25454741,
       -0.35751171, -0.01182935, -0.52620127, ...331428,  1.45428959,  0.43904986, -0.57761642,
        0.38819698,  0.01277975, -0.1830999 , -0.39793208,  0.71665979])
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0
E   
E   Mismatched elements: 10 / 25 (40%)
E   Max absolute difference: 0.73473152
E   Max relative difference: 2.
E    x: array([ 2.812516e-10, -2.952924e-04,  6.765497e-06,  6.949942e-03,
E           1.862398e-03,  3.462124e-01,  9.418727e-12, -1.803053e-01,
E           1.535267e-08, -3.524950e-02,  1.038287e-05, -5.020419e-07,...
E    y: array([ 2.812516e-10,  2.952924e-04,  6.765497e-06,  6.949942e-03,
E           1.862398e-03, -3.462124e-01, -9.418727e-12,  1.803053e-01,
E           1.535267e-08,  3.524950e-02, -1.038287e-05,  5.020419e-07,...
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec3919e10>, array([ 2.81251633e-10, -2.95292412e-04,  6.76549659e-..., -3.67365761e-01,
        1.31359521e-01,  1.70400676e-03, -9.60850194e-04, -1.37940575e-08,
        4.77023520e-07]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ test_negative_real_gh14582[spherical_yn-False] ________________
[gw12] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/special/tests/test_spherical_bessel.py:400: in test_negative_real_gh14582
    np.testing.assert_allclose(res, ref.real)
        derivative = False
        fun        = <function spherical_yn at 0x7fff63139000>
        n          = array([8, 6, 6, 3, 3, 1, 5, 0, 8, 2, 5, 6, 4, 5, 5, 7, 7, 9, 8, 1, 0, 2,
       3, 7, 7])
        ref        = array([-1.15265476e+10+0.00000000e+00j, -9.14198595e+02-4.16382296e-13j,
       -1.52262203e+05+0.00000000e+00j, -2.71...+00j,
        1.33904887e+04+6.65972141e-13j,  2.16243341e+08+2.96057166e-08j,
       -1.98087942e+06+0.00000000e+00j])
        res        = array([-1.15265476e+10,  9.14198595e+02, -1.52262203e+05, -2.71323329e+02,
       -3.59614058e+03, -8.30796710e+00, -3...9, -3.45629755e+00,
       -2.38433859e+00, -1.43736062e+06, -1.33904887e+04, -2.16243341e+08,
       -1.98087942e+06])
        rng        = Generator(PCG64) at 0x7FFEC3ECF680
        size       = 25
        z          = array([ 0.38285242, -1.43447118,  0.68356944,  0.4878164 ,  0.25454741,
       -0.35751171, -0.01182935, -0.52620127, ...331428,  1.45428959,  0.43904986, -0.57761642,
        0.38819698,  0.01277975, -0.1830999 , -0.39793208,  0.71665979])
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0
E   
E   Mismatched elements: 10 / 25 (40%)
E   Max absolute difference: 6.89763279e+14
E   Max relative difference: 2.
E    x: array([-1.152655e+10,  9.141986e+02, -1.522622e+05, -2.713233e+02,
E          -3.596141e+03, -8.307967e+00, -3.448816e+14,  1.643328e+00,
E          -6.895022e+07,  1.691320e+02, -3.039753e+05,  5.621952e+06,...
E    y: array([-1.152655e+10, -9.141986e+02, -1.522622e+05, -2.713233e+02,
E          -3.596141e+03,  8.307967e+00,  3.448816e+14, -1.643328e+00,
E          -6.895022e+07, -1.691320e+02,  3.039753e+05, -5.621952e+06,...
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec39184c0>, array([-1.15265476e+10,  9.14198595e+02, -1.52262203e+...,  3.45629755e+00,
       -2.38433859e+00, -1.43736062e+06,  1.33904887e+04,  2.16243341e+08,
       -1.98087942e+06]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
________________ test_negative_real_gh14582[spherical_yn-True] _________________
[gw12] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/special/tests/test_spherical_bessel.py:400: in test_negative_real_gh14582
    np.testing.assert_allclose(res, ref.real)
        derivative = True
        fun        = <function spherical_yn at 0x7fff63139000>
        n          = array([8, 6, 6, 3, 3, 1, 5, 0, 8, 2, 5, 6, 4, 5, 5, 7, 7, 9, 8, 1, 0, 2,
       3, 7, 7])
        ref        = array([ 2.70668811e+11+0.00000000e+00j, -4.33930738e+03-1.97983414e-12j,
        1.54971321e+06+0.00000000e+00j,  2.19...+00j,
        2.92037110e+05+1.44655790e-11j,  4.34071514e+09+5.94266177e-07j,
        2.20027575e+07+0.00000000e+00j])
        res        = array([ 2.70668811e+11,  4.33930738e+03,  1.54971321e+06,  2.19787165e+03,
        5.63264570e+04, -4.38563638e+01, -1...0, -1.05170636e+01,
        7.11715671e+00,  3.37409005e+08, -2.92037110e+05, -4.34071514e+09,
        2.20027575e+07])
        rng        = Generator(PCG64) at 0x7FFEC3ECE6C0
        size       = 25
        z          = array([ 0.38285242, -1.43447118,  0.68356944,  0.4878164 ,  0.25454741,
       -0.35751171, -0.01182935, -0.52620127, ...331428,  1.45428959,  0.43904986, -0.57761642,
        0.38819698,  0.01277975, -0.1830999 , -0.39793208,  0.71665979])
/gnu/store/50047r6f9chb6dwd01f9hai90y9arwb4-python-3.10.7/lib/python3.10/contextlib.py:79: in inner
    return func(*args, **kwds)
E   AssertionError: 
E   Not equal to tolerance rtol=1e-07, atol=0
E   
E   Mismatched elements: 10 / 25 (40%)
E   Max absolute difference: 3.49856014e+17
E   Max relative difference: 2.
E    x: array([ 2.706688e+11,  4.339307e+03,  1.549713e+06,  2.197872e+03,
E           5.632646e+04, -4.385636e+01, -1.749280e+17,  4.077489e+00,
E           9.135794e+08,  1.923020e+03, -4.754668e+06,  9.638632e+07,...
E    y: array([ 2.706688e+11, -4.339307e+03,  1.549713e+06,  2.197872e+03,
E           5.632646e+04,  4.385636e+01,  1.749280e+17, -4.077489e+00,
E           9.135794e+08, -1.923020e+03,  4.754668e+06, -9.638632e+07,...
        args       = (<function assert_allclose.<locals>.compare at 0x7ffec3918430>, array([ 2.70668811e+11,  4.33930738e+03,  1.54971321e+...,  1.05170636e+01,
        7.11715671e+00,  3.37409005e+08,  2.92037110e+05,  4.34071514e+09,
        2.20027575e+07]))
        func       = <function assert_array_compare at 0x7ffff405fd00>
        kwds       = {'equal_nan': True, 'err_msg': '', 'header': 'Not equal to tolerance rtol=1e-07, atol=0', 'verbose': True}
        self       = <contextlib._GeneratorContextManager object at 0x7ffff4072c50>
____________ TestCircFuncs.test_circmean_accuracy_tiny_input[numpy] ____________
[gw13] linux -- Python 3.10.7 /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
/gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/stats/tests/test_morestats.py:2794: in test_circmean_accuracy_tiny_input
    assert xp.all(xp.sin(x) == x) and xp.all(xp.cos(x) == 1.0)
E   AssertionError: assert (True and False)
E    +  where True = <function all at 0x7ffff4f057e0>(array([1.0000...00000000e-08]) == array([1.0000...00000000e-08])
E    +    where <function all at 0x7ffff4f057e0> = <module 'numpy' from '/gnu/store/yg0qslwp76hhk6gdca0wb353f4smmlq8-python-numpy-1.24.4/lib/python3.10/site-packages/numpy/__init__.py'>.all
E       
E       Full diff:
E         array([1.00000000e-09, 1.09090909e-09, 1.18181818e-09, 1.27272727e-09,
E                1.36363636e-09, 1.45454545e-09, 1.54545455e-09, 1.63636364e-09,
E                1.72727273e-09, 1.81818182e-09, 1.90909091e-09, 2.00000000e-09,
E                2.09090909e-09, 2.18181818e-09, 2.27272727e-09, 2.36363636e-09,
E                2.45454545e-09, 2.54545455e-09, 2.63636364e-09, 2.72727273e-09,...
E       
E       ...Full output truncated (20 lines hidden), use '-vv' to show)
E    +  and   False = <function all at 0x7ffff4f057e0>(array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) == 1.0)
E    +    where <function all at 0x7ffff4f057e0> = <module 'numpy' from '/gnu/store/yg0qslwp76hhk6gdca0wb353f4smmlq8-python-numpy-1.24.4/lib/python3.10/site-packages/numpy/__init__.py'>.all
E    +    and   array([1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,\n       1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.]) = <ufunc 'cos'>(array([1.00000000e-09, 1.09090909e-09, 1.18181818e-09, 1.27272727e-09,\n       1.36363636e-09, 1.45454545e-09, 1.54545455e-09, 1.63636364e-09,\n       1.72727273e-09, 1.81818182e-09, 1.90909091e-09, 2.00000000e-09,\n       2.09090909e-09, 2.18181818e-09, 2.27272727e-09, 2.36363636e-09,\n       2.45454545e-09, 2.54545455e-09, 2.63636364e-09, 2.72727273e-09,\n       2.81818182e-09, 2.90909091e-09, 3.00000000e-09, 3.09090909e-09,\n       3.18181818e-09, 3.27272727e-09, 3.36363636e-09, 3.45454545e-09,\n       3.54545455e-09, 3.63636364e-09, 3.72727273e-09, 3.81818182e-09,\n       3.90909091e-09, 4.00000000e-09, 4.09090909e-09, 4.18181818e-09,\n       4.27272727e-09, 4.36363636e-09, 4.45454545e-09, 4.54545455e-09,\n       4.63636364e-09, 4.72727273e-09, 4.81818182e-09, 4.90909091e-09,\n       5.00000000e-09, 5.09090909e-09, 5.18181818e-09, 5.27272727e-09,\n       5.36363636e-09, 5.45454545e-09, 5.54545455e-09, 5.63636364e-09,\n       5.72727273e-09, 5.81818182e-09, 5.90909091e-09, 6.00000000e-09,\n       6.09090909e-09, 6.18181818e-09, 6.27272727e-09, 6.36363636e-09,\n       6.45454545e-09, 6.54545455e-09, 6.63636364e-09, 6.72727273e-09,\n       6.81818182e-09, 6.90909091e-09, 7.00000000e-09, 7.09090909e-09,\n       7.18181818e-09, 7.27272727e-09, 7.36363636e-09, 7.45454545e-09,\n       7.54545455e-09, 7.63636364e-09, 7.72727273e-09, 7.81818182e-09,\n       7.90909091e-09, 8.00000000e-09, 8.09090909e-09, 8.18181818e-09,\n       8.27272727e-09, 8.36363636e-09, 8.45454545e-09, 8.54545455e-09,\n       8.63636364e-09, 8.72727273e-09, 8.81818182e-09, 8.90909091e-09,\n       9.00000000e-09, 9.09090909e-09, 9.18181818e-09, 9.27272727e-09,\n       9.36363636e-09, 9.45454545e-09, 9.54545455e-09, 9.63636364e-09,\n       9.72727273e-09, 9.81818182e-09, 9.90909091e-09, 1.00000000e-08]))
E    +      where <ufunc 'cos'> = <module 'numpy' from '/gnu/store/yg0qslwp76hhk6gdca0wb353f4smmlq8-python-numpy-1.24.4/lib/python3.10/site-packages/numpy/__init__.py'>.cos
        self       = <scipy.stats.tests.test_morestats.TestCircFuncs object at 0x7ffec5377610>
        x          = array([1.00000000e-09, 1.09090909e-09, 1.18181818e-09, 1.27272727e-09,
       1.36363636e-09, 1.45454545e-09, 1.545454...9.45454545e-09, 9.54545455e-09, 9.63636364e-09,
       9.72727273e-09, 9.81818182e-09, 9.90909091e-09, 1.00000000e-08])
        xp         = <module 'numpy' from '/gnu/store/yg0qslwp76hhk6gdca0wb353f4smmlq8-python-numpy-1.24.4/lib/python3.10/site-packages/numpy/__init__.py'>
=============================== warnings summary ===============================
spatial/tests/test_distance.py: 15 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:3127: DeprecationWarning: The sokalmichener metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'sokalmichener(u, v)' with 'rogerstanimoto(u, v)'.
    return cdist_fn(XA, XB, out=out, **kwargs)

spatial/tests/test_distance.py: 800 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:2782: DeprecationWarning: The sokalmichener metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'sokalmichener(u, v)' with 'rogerstanimoto(u, v)'.
    dm[i, j] = metric(XA[i], XB[j], **kwargs)

spatial/tests/test_distance.py: 15 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:2322: DeprecationWarning: The sokalmichener metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'sokalmichener(u, v)' with 'rogerstanimoto(u, v)'.
    return pdist_fn(X, out=out, **kwargs)

spatial/tests/test_distance.py: 380 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:2771: DeprecationWarning: The sokalmichener metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'sokalmichener(u, v)' with 'rogerstanimoto(u, v)'.
    dm[k] = metric(X[i], X[j], **kwargs)

spatial/tests/test_distance.py: 15 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:3127: DeprecationWarning: The kulczynski1 metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'kulczynski1(u, v)' with '1/jaccard(u, v) - 1'.
    return cdist_fn(XA, XB, out=out, **kwargs)

spatial/tests/test_distance.py: 800 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:2782: DeprecationWarning: The kulczynski1 metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'kulczynski1(u, v)' with '1/jaccard(u, v) - 1'.
    dm[i, j] = metric(XA[i], XB[j], **kwargs)

spatial/tests/test_distance.py: 15 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:2322: DeprecationWarning: The kulczynski1 metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'kulczynski1(u, v)' with '1/jaccard(u, v) - 1'.
    return pdist_fn(X, out=out, **kwargs)

spatial/tests/test_distance.py: 380 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/spatial/distance.py:2771: DeprecationWarning: The kulczynski1 metric is deprecated since SciPy 1.15.0 and will be removed in SciPy 1.17.0.  Replace usage of 'kulczynski1(u, v)' with '1/jaccard(u, v) - 1'.
    dm[k] = metric(X[i], X[j], **kwargs)

stats/tests/test_axis_nan_policy.py: 93 warnings
  /gnu/store/yg0qslwp76hhk6gdca0wb353f4smmlq8-python-numpy-1.24.4/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3464: RuntimeWarning: Mean of empty slice.
    return _methods._mean(a, axis=axis, dtype=dtype,

stats/tests/test_axis_nan_policy.py: 73 warnings
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/stats/_stats_py.py:10845: SmallSampleWarning: One or more sample arguments is too small; all returned values will be NaN. See documentation for sample size requirements.
    return gmean(x, weights=weights, axis=axis, keepdims=keepdims)

stats/tests/test_qmc.py::TestUtils::test_geometric_discrepancy_mst_with_zero_distances
  /gnu/store/3hc3zbba3y4vihlxaxnq7l15hjhgf74m-python-scipy-1.15.2/lib/python3.10/site-packages/scipy/stats/tests/test_qmc.py:233: UserWarning: Sample contains duplicate points.
    assert_allclose(qmc.geometric_discrepancy(sample, method='mst'), 0.5)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED interpolate/tests/test_bary_rational.py::TestAAA::test_basic_functions[<lambda>-3.5e-13-0]
FAILED interpolate/tests/test_bary_rational.py::TestAAA::test_basic_functions[<lambda>-8e-13-0]
FAILED optimize/tests/test__differential_evolution.py::TestDifferentialEvolutionSolver::test_L4
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_jn-False]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_jn-True]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_in-False]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_in-True]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_yn-False]
FAILED special/tests/test_spherical_bessel.py::test_negative_real_gh14582[spherical_yn-True]
FAILED stats/tests/test_morestats.py::TestCircFuncs::test_circmean_accuracy_tiny_input[numpy]
ERROR datasets/tests/test_data.py::TestDatasets::test_existence_all - Permiss...
ERROR datasets/tests/test_data.py::TestDatasets::test_ascent - PermissionErro...
ERROR datasets/tests/test_data.py::TestDatasets::test_face - PermissionError:...
ERROR datasets/tests/test_data.py::TestDatasets::test_electrocardiogram - Per...
= 10 failed, 58754 passed, 3750 skipped, 194 xfailed, 11 xpassed, 2587 warnings, 4 errors in 62.40s (0:01:02) =
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-c" "import sys; import scipy; sys.exit(not scipy.test('fast', parallel=32, verbose=2))") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `check' failed after 64.5 seconds
command "python" "-c" "import sys; import scipy; sys.exit(not scipy.test('fast', parallel=32, verbose=2))" failed with status 1

SciPy/NumPy/Python version and system information

$ python -c 'import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info); scipy.show_config()'
1.15.2 1.24.4 sys.version_info(major=3, minor=10, micro=7, releaselevel='final', serial=0)
Build Dependencies:
  blas:
    detection method: pkgconfig
    found: true
    include directory: /gnu/store/l8x759ps87dlm6fiki7bb8kp71j3rq84-openblas-0.3.20/include
    lib directory: /gnu/store/l8x759ps87dlm6fiki7bb8kp71j3rq84-openblas-0.3.20/lib
    name: openblas
    openblas configuration: USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 NO_CBLAS=
      NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= generic MAX_THREADS=128
    pc file directory: /gnu/store/l8x759ps87dlm6fiki7bb8kp71j3rq84-openblas-0.3.20/lib/pkgconfig
    version: 0.3.20
  lapack:
    detection method: pkgconfig
    found: true
    include directory: /gnu/store/l8x759ps87dlm6fiki7bb8kp71j3rq84-openblas-0.3.20/include
    lib directory: /gnu/store/l8x759ps87dlm6fiki7bb8kp71j3rq84-openblas-0.3.20/lib
    name: openblas
    openblas configuration: USE_64BITINT= DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 NO_CBLAS=
      NO_LAPACK= NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP= generic MAX_THREADS=128
    pc file directory: /gnu/store/l8x759ps87dlm6fiki7bb8kp71j3rq84-openblas-0.3.20/lib/pkgconfig
    version: 0.3.20
  pybind11:
    detection method: pkgconfig
    include directory: /include
    name: pybind11
    version: 2.13.6
Compilers:
  c:
    commands: gcc
    linker: ld.bfd
    name: gcc
    version: 11.4.0
  c++:
    commands: c++
    linker: ld.bfd
    name: gcc
    version: 11.4.0
  cython:
    commands: cython
    linker: cython
    name: cython
    version: 3.0.11
  fortran:
    commands: gfortran
    linker: ld.bfd
    name: gcc
    version: 11.4.0
  pythran:
    include directory: ../../../../gnu/store/31vp8dw8v65y2k782dsl656n7fihdr30-python-pythran-0.17.0/lib/python3.10/site-packages/pythran
    version: 0.17.0
Machine Information:
  build:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
  cross-compiled: false
  host:
    cpu: x86_64
    endian: little
    family: x86_64
    system: linux
Python Information:
  path: /gnu/store/cd9xnk7dcn5dfibjzvl6l7wk43s5ifg1-python-wrapper-3.10.7/bin/python
  version: '3.10'

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 25 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, I’ll try investigating from that angle when I have a chance. As for some kind of heuristic to determine if the test is running on Guix, I think you could use something like:

import sys

def is_guix():
    '''Return `True` if Python is from GNU Guix, `False` otherwise.'''
    return sys.prefix.startswith('/gnu/store')

sys.prefix reads something like '/gnu/store/sk0wqmsnj2brbdz26295hara147zim69-python-3.10.7' on Guix.