From 60a500c3ef12df981e7b98bda7f75a34bf3b28f9 Mon Sep 17 00:00:00 2001 From: Isaac Virshup Date: Tue, 27 Feb 2024 12:37:38 +0000 Subject: [PATCH] More specific test --- anndata/tests/test_backed_sparse.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/anndata/tests/test_backed_sparse.py b/anndata/tests/test_backed_sparse.py index 090c2b1da..882cd2408 100644 --- a/anndata/tests/test_backed_sparse.py +++ b/anndata/tests/test_backed_sparse.py @@ -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)