Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/ndarray/test_lazyexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1397,14 +1397,14 @@ def test_missing_operator():
a = blosc2.arange(10, urlpath="a.b2nd", mode="w")
b = blosc2.arange(10, urlpath="b.b2nd", mode="w")
expr = blosc2.lazyexpr("a + b")
c = expr.save("expr.b2nd", mode="w")
expr.save("expr.b2nd", mode="w")
# Remove the file for operand b
blosc2.remove_urlpath("b.b2nd")
# Re-open the lazy expression
with pytest.raises(blosc2.exceptions.MissingOperands) as excinfo:
blosc2.open("expr.b2nd")

# Check that some operand is missing"
# Check that some operand is missing
assert "a" not in excinfo.value.missing_ops
assert excinfo.value.missing_ops["b"] == pathlib.Path("b.b2nd")
assert excinfo.value.expr == "a + b"
Expand Down
Loading