File size: 645 Bytes
6e5ef42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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()