Skip to content

Commit

Permalink
add a test to check the behavior is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
eroell committed Nov 13, 2024
1 parent 6bf1473 commit 6d603d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_backed_hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d603d1

Please sign in to comment.