From 6d603d15782b00485245b2520da15da03e82b51d Mon Sep 17 00:00:00 2001 From: Eljas Roellin Date: Wed, 13 Nov 2024 12:24:45 +0100 Subject: [PATCH] add a test to check the behavior is correct --- tests/test_backed_hdf5.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_backed_hdf5.py b/tests/test_backed_hdf5.py index 19b4ca44d..2b584ad67 100644 --- a/tests/test_backed_hdf5.py +++ b/tests/test_backed_hdf5.py @@ -270,6 +270,8 @@ def test_return_to_memory_mode(adata, backing_h5ad): adata.filename = None assert not adata.isbacked + assert adata.X is not None + # make sure the previous file had been properly closed # when setting `adata.filename = None` # if it hadn’t the following line would throw an error