Skip to content

Commit

Permalink
MAINT: PR 19543 revisions
Browse files Browse the repository at this point in the history
* attempt to fix up linter complaints
related to `isinstance` usage for type checking

[skip cirrus]
  • Loading branch information
tylerjereddy committed Nov 18, 2023
1 parent 86b6582 commit c6ff642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/sparse/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3842,7 +3842,7 @@ def test_has_sorted_indices(self):
indptr = np.array([0, 2])
M = csr_matrix((data, sorted_inds, indptr)).copy()
assert_equal(True, M.has_sorted_indices)
assert type(M.has_sorted_indices) == bool
assert isinstance(M.has_sorted_indices, bool)

M = csr_matrix((data, unsorted_inds, indptr)).copy()
assert_equal(False, M.has_sorted_indices)
Expand Down Expand Up @@ -3874,7 +3874,7 @@ def test_has_canonical_format(self):

M = csr_matrix((data, indices, indptr)).copy()
assert_equal(False, M.has_canonical_format)
assert type(M.has_canonical_format) == bool
assert isinstance(M.has_canonical_format, bool)

# set by deduplicating
M.sum_duplicates()
Expand Down

0 comments on commit c6ff642

Please sign in to comment.