Skip to content

Commit

Permalink
More specific test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup committed Feb 27, 2024
1 parent 5da3c61 commit 60a500c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anndata/tests/test_backed_sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,5 +459,8 @@ def test_append_overflow_check(group_fn, tmpdir):
write_elem(group, "mtx", orig_mtx)
backed = sparse_dataset(group["mtx"])

with pytest.raises(OverflowError):
with pytest.raises(
OverflowError,
match=r"This array was written with a 32 bit intptr, but is now large.*",
):
backed.append(new_mtx)

0 comments on commit 60a500c

Please sign in to comment.