HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/anaconda3/Lib/site-packages/scipy/sparse/tests/test_deprecations.py
import scipy as sp
import pytest


def test_array_api_deprecations():
    X = sp.sparse.csr_array([
        [1,2,3],
        [4,0,6]
    ])
    msg = "1.14.0"

    with pytest.deprecated_call(match=msg):
        X.get_shape()

    with pytest.deprecated_call(match=msg):
        X.set_shape((2,3))

    with pytest.deprecated_call(match=msg):
        X.asfptype()

    with pytest.deprecated_call(match=msg):
        X.getmaxprint()

    with pytest.deprecated_call(match=msg):
        X.getH()

    with pytest.deprecated_call(match=msg):
        X.getcol(1).todense()

    with pytest.deprecated_call(match=msg):
        X.getrow(1).todense()