Skip to content

Commit

Permalink
Backport PR scverse#1313: Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup authored and meeseeksmachine committed Jan 16, 2024
1 parent 9723160 commit 639fe8e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion anndata/tests/test_dask_view_mem.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ def test_modify_view_X_memory(mapping_name, give_chunks):
subset = adata[:N, :N]
assert subset.is_view
m = subset.X
m[0, 0] = 100
with pytest.warns(
ad.ImplicitModificationWarning,
match="Trying to modify attribute `.X` of view, initializing view as actual.",
):
m[0, 0] = 100


# Normally should expect something around 90 kbs
Expand Down

0 comments on commit 639fe8e

Please sign in to comment.