Skip to content

Commit

Permalink
Fix testcase: actually test exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1p committed Mar 20, 2024
1 parent 85d7254 commit 118d48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_sparseconverters.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def test_unknown_format():
# strict: explicit error message
with pytest.raises(UnknownBackendError) as em:
for_backend(not_an_array, 'asdf', strict=True)
assert "`arr` has unknown or unsupported type `str`"
assert "`arr` has unknown or unsupported type `<class 'str'>`" in str(em.value)


def test_cheapest_pair():
Expand Down

0 comments on commit 118d48a

Please sign in to comment.