Bug 2293918 - scipy fails to build with pytest 8: TypeError: 'dia_matrix' object is not subscriptable
Summary: scipy fails to build with pytest 8: TypeError: 'dia_matrix' object is not sub...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: scipy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikola Forró
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2313670 (view as bug list)
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-06-24 12:05 UTC by Tomáš Hrnčiar
Modified: 2024-10-29 22:26 UTC (History)
10 users (show)

Fixed In Version: scipy-1.14.1-1.fc42
Clone Of:
Environment:
Last Closed: 2024-10-29 22:26:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-06-24 12:05:00 UTC
scipy fails to build with pytest 8.

Looking at upstream's CI the tests are passing with pytest-8.2.2, updating scipy to the latest version could maybe help. 

=================================== FAILURES ===================================
__ Test64Bit.test_resiliency_limit_10[TestDIA-test_multiple_ellipsis_slicing] __
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc2107ab0c0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'dia_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25ddc6f30>
cls = <class 'scipy.sparse.tests.test_base.TestDIA'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_limit_10(self, cls, method_name):
>       self._check_resiliency(cls, method_name, maxval_limit=10)

scipy/sparse/tests/test_base.py:5015: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-279>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc2107ab0c0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_random[TestBSR-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20f990690>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 49 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25e3eb7a0>
cls = <class 'scipy.sparse.tests.test_base.TestBSR'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_random(self, cls, method_name):
        # bsr_matrix.eliminate_zeros relies on csr_matrix constructor
        # not making copies of index arrays --- this is not
        # necessarily true when we pick the index data type randomly
>       self._check_resiliency(cls, method_name, random=True)

scipy/sparse/tests/test_base.py:5022: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-1171>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20f990690>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_random[TestCOO-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20f40d130>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25e3eb1b0>
cls = <class 'scipy.sparse.tests.test_base.TestCOO'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_random(self, cls, method_name):
        # bsr_matrix.eliminate_zeros relies on csr_matrix constructor
        # not making copies of index arrays --- this is not
        # necessarily true when we pick the index data type randomly
>       self._check_resiliency(cls, method_name, random=True)

scipy/sparse/tests/test_base.py:5022: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-1459>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20f40d130>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
____________________ TestCOO.test_multiple_ellipsis_slicing ____________________
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7f941450ff20>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7f941450ff20>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
____________________ TestDIA.test_multiple_ellipsis_slicing ____________________
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7f941510e530>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'dia_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7f941510e530>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_random[TestDIA-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20f0e0140>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'dia_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25db36530>
cls = <class 'scipy.sparse.tests.test_base.TestDIA'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_random(self, cls, method_name):
        # bsr_matrix.eliminate_zeros relies on csr_matrix constructor
        # not making copies of index arrays --- this is not
        # necessarily true when we pick the index data type randomly
>       self._check_resiliency(cls, method_name, random=True)

scipy/sparse/tests/test_base.py:5022: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-2357>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20f0e0140>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
____________________ TestBSR.test_multiple_ellipsis_slicing ____________________
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7f94150b4d70>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 49 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7f94150b4d70>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_all_32[TestBSR-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20edade50>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 49 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25ded3ac0>
cls = <class 'scipy.sparse.tests.test_base.TestBSR'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_all_32(self, cls, method_name):
>       self._check_resiliency(cls, method_name, fixed_dtype=np.int32)

scipy/sparse/tests/test_base.py:5026: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-3249>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20edade50>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_all_32[TestCOO-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20e0ffd40>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25df12c60>
cls = <class 'scipy.sparse.tests.test_base.TestCOO'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_all_32(self, cls, method_name):
>       self._check_resiliency(cls, method_name, fixed_dtype=np.int32)

scipy/sparse/tests/test_base.py:5026: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-3537>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20e0ffd40>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
______________ TestBSRNonCanonical.test_multiple_ellipsis_slicing ______________
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSRNonCanonical object at 0x7f94146308c0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 100 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.TestBSRNonCanonical object at 0x7f94146308c0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_all_32[TestDIA-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20d375e00>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'dia_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25e139fe0>
cls = <class 'scipy.sparse.tests.test_base.TestDIA'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_all_32(self, cls, method_name):
>       self._check_resiliency(cls, method_name, fixed_dtype=np.int32)

scipy/sparse/tests/test_base.py:5026: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-4435>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20d375e00>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
______________ TestCOONonCanonical.test_multiple_ellipsis_slicing ______________
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOONonCanonical object at 0x7f94146330c0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.TestCOONonCanonical object at 0x7f94146330c0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
__ Test64Bit.test_resiliency_limit_10[TestBSR-test_multiple_ellipsis_slicing] __
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7f940e3defd0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 49 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7f9414e1d2c0>
cls = <class 'scipy.sparse.tests.test_base.TestBSR'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_limit_10(self, cls, method_name):
>       self._check_resiliency(cls, method_name, maxval_limit=10)

scipy/sparse/tests/test_base.py:5015: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-206>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7f940e3defd0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
__ Test64Bit.test_resiliency_limit_10[TestCOO-test_multiple_ellipsis_slicing] __
[gw1] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7f940e46ab70>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7f9414665db0>
cls = <class 'scipy.sparse.tests.test_base.TestCOO'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_limit_10(self, cls, method_name):
>       self._check_resiliency(cls, method_name, maxval_limit=10)

scipy/sparse/tests/test_base.py:5015: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-494>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7f940e46ab70>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_all_64[TestBSR-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20d0acf50>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 49 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25e003570>
cls = <class 'scipy.sparse.tests.test_base.TestBSR'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_all_64(self, cls, method_name):
>       self._check_resiliency(cls, method_name, fixed_dtype=np.int64)

scipy/sparse/tests/test_base.py:5030: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-5327>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20d0acf50>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_all_64[TestCOO-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20c192df0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25e046710>
cls = <class 'scipy.sparse.tests.test_base.TestCOO'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_all_64(self, cls, method_name):
>       self._check_resiliency(cls, method_name, fixed_dtype=np.int64)

scipy/sparse/tests/test_base.py:5030: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-5615>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20c192df0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
___ Test64Bit.test_resiliency_all_64[TestDIA-test_multiple_ellipsis_slicing] ___
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20c8e5180>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'dia_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25d761a90>
cls = <class 'scipy.sparse.tests.test_base.TestDIA'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_resiliency_all_64(self, cls, method_name):
>       self._check_resiliency(cls, method_name, fixed_dtype=np.int64)

scipy/sparse/tests/test_base.py:5030: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-6513>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20c8e5180>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
_________ Test64Bit.test_no_64[TestBSR-test_multiple_ellipsis_slicing] _________
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20c7904b0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)

scipy/sparse/tests/test_base.py:2589: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <5x10 sparse matrix of type '<class 'numpy.int64'>'
	with 49 stored elements (blocksize = 1x1) in Block Sparse Row format>
key = (Ellipsis, Ellipsis)

    def __getitem__(self,key):
>       raise NotImplementedError
E       NotImplementedError

scipy/sparse/_bsr.py:336: NotImplementedError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25d664140>
cls = <class 'scipy.sparse.tests.test_base.TestBSR'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_no_64(self, cls, method_name):
>       self._check_resiliency(cls, method_name, assert_32bit=True)

scipy/sparse/tests/test_base.py:5034: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-7405>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestBSR object at 0x7fc20c7904b0>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
_________ Test64Bit.test_no_64[TestCOO-test_multiple_ellipsis_slicing] _________
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20b98ab70>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'coo_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25d67a990>
cls = <class 'scipy.sparse.tests.test_base.TestCOO'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_no_64(self, cls, method_name):
>       self._check_resiliency(cls, method_name, assert_32bit=True)

scipy/sparse/tests/test_base.py:5034: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-7693>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestCOO object at 0x7fc20b98ab70>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
_________ Test64Bit.test_no_64[TestDIA-test_multiple_ellipsis_slicing] _________
[gw0] linux -- Python 3.13.0 /usr/bin/python3

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20b272620>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
        with pytest.deprecated_call(match='removed in v1.13'):
>           assert_array_equal(a[..., ...].toarray(), b[:, :].A)
E           TypeError: 'dia_matrix' object is not subscriptable

scipy/sparse/tests/test_base.py:2589: TypeError

During handling of the above exception, another exception occurred:

self = <scipy.sparse.tests.test_base.Test64Bit object at 0x7fc25d2914f0>
cls = <class 'scipy.sparse.tests.test_base.TestDIA'>
method_name = 'test_multiple_ellipsis_slicing'

    @pytest.mark.parametrize('cls,method_name', cases_64bit())
    def test_no_64(self, cls, method_name):
>       self._check_resiliency(cls, method_name, assert_32bit=True)

scipy/sparse/tests/test_base.py:5034: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
scipy/sparse/tests/test_base.py:5011: in _check_resiliency
    check(cls, method_name)
<decorator-gen-8591>:2: in check
    ???
scipy/sparse/tests/test_base.py:156: in deco
    return func(*a, **kw)
scipy/sparse/tests/test_base.py:5006: in check
    getattr(instance, method_name)()
scipy/sparse/tests/test_base.py:3617: in wrapper
    return fc(*a, **kw)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <scipy.sparse.tests.test_base.TestDIA object at 0x7fc20b272620>

    def test_multiple_ellipsis_slicing(self):
        b = asmatrix(arange(50).reshape(5,10))
        a = self.spcreator(b)
    
>       with pytest.deprecated_call(match='removed in v1.13'):
E       Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
E        Emitted warnings: [].

scipy/sparse/tests/test_base.py:2588: Failed
=============================== warnings summary ===============================
scipy/_lib/tests/test__util.py: 6 warnings
scipy/fft/tests/test_multithreading.py: 2 warnings
scipy/fft/tests/test_numpy.py: 8 warnings
scipy/integrate/tests/test__quad_vec.py: 24 warnings
scipy/optimize/tests/test__differential_evolution.py: 6 warnings
scipy/optimize/tests/test__shgo.py: 4 warnings
scipy/optimize/tests/test_optimize.py: 2 warnings
scipy/stats/tests/test_stats.py: 2 warnings
  /usr/lib64/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=26279) is multi-threaded, use of fork() may lead to deadlocks in the child.
    self.pid = os.fork()

scipy/_lib/tests/test_warnings.py: 89 warnings
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/_lib/tests/test_warnings.py:42: DeprecationWarning: Attribute s is deprecated and will be removed in Python 3.14; use value instead
    if node.args[0].s == "ignore":

scipy/linalg/tests/test_special_matrices.py::test_special_matrices_deprecation[tri]
scipy/linalg/tests/test_special_matrices.py::test_special_matrices_deprecation[tri]
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/linalg/_special_matrices.py:76: 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.)
    m = np.greater_equal.outer(np.arange(k, N+k), np.arange(M))

scipy/signal/tests/test_signaltools.py::TestMedFilt::test_none
  /usr/lib/python3.13/site-packages/_pytest/python_api.py:962: DeprecationWarning: Using medfilt with arrays of dtype object is deprecated in SciPy 1.11 and will be removed in SciPy 1.13
    func(*args[1:], **kwargs)

scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
scipy/signal/tests/test_signaltools.py::TestMedFilt::test_refcounting
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/signal/tests/test_signaltools.py:1141: DeprecationWarning: Using medfilt with arrays of dtype object is deprecated in SciPy 1.11 and will be removed in SciPy 1.13
    signal.medfilt(x)

scipy/signal/tests/test_windows.py::test_deprecated_import[chebwin-args15]
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/signal/windows/_windows.py:1543: UserWarning: This window is not suitable for spectral analysis for attenuation values lower than about 45dB because the equivalent noise bandwidth of a Chebyshev window does not grow monotonically with increasing sidelobe attenuation when the attenuation is smaller than about 45 dB.
    warnings.warn("This window is not suitable for spectral analysis "

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_ElasticRod
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:74: UserWarning: Exited postprocessing with accuracies 
  [ 0.31396381 12.60341924]
  not reaching the requested tolerance 0.01.
    eigvals, _ = lobpcg(A, X, B=B, tol=1e-2, maxiter=50, largest=False)

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_failure_to_run_iterations_nonsymmetric
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:358: UserWarning: Exited postprocessing with accuracies 
  [0.3]
  not reaching the requested tolerance 1.4901161193847656e-07.
    eigenvalues, _ = lobpcg(A, Q, maxiter=20)

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_verbosity
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:433: UserWarning: Exited postprocessing with accuracies 
  [0.39989847]
  not reaching the requested tolerance 1.4901161193847656e-07.
    _, _ = lobpcg(A, Q, maxiter=3, verbosityLevel=9)

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_maxit
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:510: UserWarning: Exited postprocessing with accuracies 
  [4.67705979 4.51222958 4.91884625 4.28224425]
  not reaching the requested tolerance 1e-08.
    _, _, l_h, r_h = lobpcg(A, X, tol=1e-8, maxiter=maxiter,

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_maxit
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:510: UserWarning: Exited postprocessing with accuracies 
  [2.41167499 3.6202863  3.02994104 3.25693612]
  not reaching the requested tolerance 1e-08.
    _, _, l_h, r_h = lobpcg(A, X, tol=1e-8, maxiter=maxiter,

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_maxit
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:510: UserWarning: Exited postprocessing with accuracies 
  [1.22418686 2.58627267 2.34992886 4.75287574]
  not reaching the requested tolerance 1e-08.
    _, _, l_h, r_h = lobpcg(A, X, tol=1e-8, maxiter=maxiter,

scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py::test_maxit
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/sparse/linalg/_eigen/lobpcg/tests/test_lobpcg.py:516: UserWarning: Exited postprocessing with accuracies 
  [8.67002393e-05 2.85521547e-04 3.57926110e-03 2.11922543e-02]
  not reaching the requested tolerance 1e-08.
    l, _, l_h, r_h = lobpcg(A, X, tol=1e-8,

scipy/sparse/linalg/_isolve/tests/test_iterative.py::TestGMRES::test_restrt_dep
  <decorator-gen-5>:2: DeprecationWarning: scipy.sparse.linalg.gmres called without specifying `atol`. The default value will be changed in a future release. For compatibility, specify a value for `atol` explicitly, e.g., ``gmres(..., atol=0)``, or to retain the old behavior ``gmres(..., atol='legacy')``

scipy/optimize/tests/test_optimize.py::TestBrute::test_runtime_warning
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/optimize/_optimize.py:3853: RuntimeWarning: Maximum number of function evaluations has been exceeded.
    res = finish(func, xmin, args=args, **finish_kwargs)

scipy/signal/tests/test_filter_design.py::TestButtord::test_runtime_warnings
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/signal/_filter_design.py:3793: RuntimeWarning: divide by zero encountered in divide
    nat = stopb / passb

scipy/signal/tests/test_signaltools.py::TestFFTConvolve::test_fft_nan
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/signal/_signaltools.py:510: RuntimeWarning: invalid value encountered in multiply
    ret = ifft(sp1 * sp2, fshape, axes=axes)

scipy/stats/tests/test_fit.py::TestFit::test_guess_iv
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/stats/tests/test_fit.py:466: RuntimeWarning: Guess for parameter `p` clipped from -0.5 to 0.0.
    stats.fit(self.dist, self.data, self.shape_bounds_d, guess=guess)

scipy/stats/tests/test_mstats_basic.py::test_theilslopes_warnings
  /usr/lib64/python3.13/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice.
    return _methods._mean(a, axis=axis, dtype=dtype,

scipy/stats/tests/test_mstats_basic.py::test_theilslopes_warnings
scipy/stats/tests/test_stats.py::TestMoments::test_moment
scipy/stats/tests/test_stats.py::TestMoments::test_empty_1d
scipy/stats/tests/test_stats.py::TestMoments::test_empty_1d
scipy/stats/tests/test_stats.py::TestMoments::test_empty_1d
scipy/stats/tests/test_stats.py::TestMoments::test_empty_1d
  /usr/lib64/python3.13/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide
    ret = ret.dtype.type(ret / rcount)

scipy/stats/tests/test_stats.py::TestMoments::test_moment
  /usr/lib64/python3.13/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in divide
    ret = ret.dtype.type(ret / rcount)

scipy/stats/tests/test_stats.py::TestMoments::test_empty_1d
scipy/stats/tests/test_stats.py::TestMoments::test_empty_1d
  /usr/lib64/python3.13/site-packages/numpy/core/_methods.py:121: RuntimeWarning: invalid value encountered in divide
    ret = um.true_divide(

scipy/stats/tests/test_stats.py::TestBrunnerMunzel::test_brunnermunzel_return_nan
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/stats/_stats_py.py:9549: RuntimeWarning: divide by zero encountered in scalar divide
    wbfn /= (nx + ny) * np.sqrt(nx * Sx + ny * Sy)

scipy/stats/tests/test_stats.py::TestBrunnerMunzel::test_brunnermunzel_return_nan
  /builddir/build/BUILD/scipy-1.11.3-build/BUILDROOT/usr/lib64/python3.13/site-packages/scipy/stats/_stats_py.py:9555: RuntimeWarning: invalid value encountered in scalar divide
    df = df_numer / df_denom

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestDIA-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestBSR-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestCOO-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::TestCOO::test_multiple_ellipsis_slicing
FAILED scipy/sparse/tests/test_base.py::TestDIA::test_multiple_ellipsis_slicing
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_random[TestDIA-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::TestBSR::test_multiple_ellipsis_slicing
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestBSR-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestCOO-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::TestBSRNonCanonical::test_multiple_ellipsis_slicing
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_all_32[TestDIA-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::TestCOONonCanonical::test_multiple_ellipsis_slicing
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestBSR-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_limit_10[TestCOO-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestBSR-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestCOO-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_resiliency_all_64[TestDIA-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_no_64[TestBSR-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_no_64[TestCOO-test_multiple_ellipsis_slicing]
FAILED scipy/sparse/tests/test_base.py::Test64Bit::test_no_64[TestDIA-test_multiple_ellipsis_slicing]
= 20 failed, 55040 passed, 2808 skipped, 246 xfailed, 10 xpassed, 179 warnings in 777.47s (0:12:57) =

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest-8.2.2/fedora-rawhide-x86_64/07659659-scipy/

For all our attempts to build scipy with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest-8.2.2/package/scipy/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Nikola Forró 2024-06-26 07:49:44 UTC
> Looking at upstream's CI the tests are passing with pytest-8.2.2, updating scipy to the latest version could maybe help.

Unfortunately doing a rebase turned out to be rather complicated (there is a new dependency that needs to be packaged first), so let me try to identify and backport fixes/changes from upstream.

Comment 2 Nikola Forró 2024-06-26 18:06:54 UTC
There is nothing to backport from upstream, they simply removed the deprecated functionality, including the tests.
The problem is that this wrapper [1] that is supposed to catch common errors and skip a test if they occured doesn't play well with the updated implementation of pytest.deprecated_call().

[1] https://github.com/scipy/scipy/blob/fffcaa8c58b6909d22063c29e4f9593059a40230/scipy/sparse/tests/test_base.py#L3760-L3765

Comment 3 Miro Hrončok 2024-09-19 23:08:20 UTC
*** Bug 2313670 has been marked as a duplicate of this bug. ***

Comment 4 Nikola Forró 2024-09-20 05:37:21 UTC
The test failures will be solved by a rebase, see bug #2211813, however the test suite newly depends on python3-hypothesis, so for a successful ELN build we will probably have to disable tests, like in numpy:
https://src.fedoraproject.org/rpms/numpy/c/fcc064a276778d77f4938dae6173e1b0e6494e64

Comment 5 Yaakov Selkowitz 2024-09-20 06:02:03 UTC
hypothesis is unwanted in RHEL, so in that case disabling the tests will be necessary.

Comment 6 Yaakov Selkowitz 2024-10-29 01:45:10 UTC
ANy word on an update for this?

Comment 7 Nikola Forró 2024-10-29 07:55:42 UTC
We are going to rebase scipy soon, likely today.


Note You need to log in before you can comment on or make changes to this bug.