Skip to content

Commit 660a165

Browse files
committed
Update DictStore test for discovered LazyExpr leaves
1 parent 3a57296 commit 660a165

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_dict_store.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def test_metadata_discovery_reopens_renamed_external_vlarray(storage_type, tmp_p
401401
assert value.vlmeta["description"] == "Renamed VLArray"
402402

403403

404-
def test_metadata_discovery_warns_and_skips_unsupported_blosc2_leaf(tmp_path):
404+
def test_metadata_discovery_reopens_lazyexpr_leaf(tmp_path):
405405
path = tmp_path / "test_unsupported_lazyexpr.b2d"
406406

407407
with DictStore(str(path), mode="w") as dstore:
@@ -413,13 +413,13 @@ def test_metadata_discovery_warns_and_skips_unsupported_blosc2_leaf(tmp_path):
413413
expr_path = path / "unsupported_lazyexpr.b2nd"
414414
expr.save(str(expr_path))
415415

416-
with pytest.warns(
417-
UserWarning, match=r"Ignoring unsupported Blosc2 object.*unsupported_lazyexpr\.b2nd.*LazyExpr"
418-
):
419-
dstore_read = DictStore(str(path), mode="r")
416+
dstore_read = DictStore(str(path), mode="r")
420417
with dstore_read:
421-
assert "/unsupported_lazyexpr" not in dstore_read
418+
assert "/unsupported_lazyexpr" in dstore_read
422419
assert "/embedded" in dstore_read
420+
value = dstore_read["/unsupported_lazyexpr"]
421+
assert isinstance(value, blosc2.LazyExpr)
422+
np.testing.assert_array_equal(value[:], np.arange(5) * 2)
423423

424424

425425
def _digest_value(value):

0 commit comments

Comments
 (0)