Skip to content

Commit

Permalink
Change read-only lazy test assumptions after Dask 2024.12
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <[email protected]>
  • Loading branch information
hakonanes committed Dec 30, 2024
1 parent 67e8df8 commit c7fd467
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_io/test_nordif.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def test_load_to_memory(self, nordif_path):
assert isinstance(s.data, np.ndarray)
assert not isinstance(s.data, np.memmap)

def test_load_readonly(self, nordif_path):
def test_load_memmap(self, nordif_path):
s = kp.load(nordif_path / "Pattern.dat", lazy=True)
keys = ["array-original", "original-array"]
k = next(
Expand All @@ -305,7 +305,6 @@ def test_load_readonly(self, nordif_path):
)
mm = s.data.dask[k]
assert isinstance(mm, np.memmap)
assert not mm.flags["WRITEABLE"]

@pytest.mark.parametrize("lazy", [True, False])
def test_load_inplace(self, nordif_path, assert_dictionary_func, lazy):
Expand Down

0 comments on commit c7fd467

Please sign in to comment.