File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -656,11 +656,13 @@ def X_64bit(request):
656656 X = sp .rand (20 , 10 , format = request .param )
657657
658658 if request .param == "coo" :
659- if hasattr (X , "indices " ):
659+ if hasattr (X , "coords " ):
660660 # for scipy >= 1.13 .indices is a new attribute and is a tuple. The
661661 # .col and .row attributes do not seem to be able to change the
662662 # dtype, for more details see https://github.com/scipy/scipy/pull/18530/
663- X .indices = tuple (v .astype ("int64" ) for v in X .indices )
663+ # Also indices was renamed to coords in
664+ # https://github.com/scipy/scipy/pull/20003
665+ X .coords = tuple (v .astype ("int64" ) for v in X .coords )
664666 else :
665667 # scipy < 1.13
666668 X .row = X .row .astype ("int64" )
You can’t perform that action at this time.
0 commit comments