Skip to content

Commit b32749d

Browse files
committed
Opt trusted network roundtrips into full deserialization
1 parent b22f886 commit b32749d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/ndarray/test_c2array_expr.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_save(cat2_context):
186186
for op in ops:
187187
del op
188188
del expr
189-
expr = blosc2.open(urlpath, mode="r")
189+
expr = blosc2.open(urlpath, mode="r", deserialize="full")
190190
res = expr.compute()
191191
assert res.dtype == np.float64
192192
np.testing.assert_allclose(res[:], nres, rtol=tol, atol=tol)

‎tests/ndarray/test_proxy_c2array.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_open(cat2_context):
8686
del a
8787
del b
8888

89-
b = blosc2.open(urlpath, mode="r")
89+
b = blosc2.open(urlpath, mode="r", deserialize="full")
9090
a = get_array(shape, chunks_blocks)
9191

9292
np.testing.assert_allclose(b[...], a[...])

‎tests/ndarray/test_proxy_expr.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_expr_proxy_operands(chunks_blocks, cat2_context):
7676
urlpath = "expr_proxies.b2nd"
7777
expr.save(urlpath=urlpath, mode="w")
7878
del expr
79-
expr_opened = blosc2.open("expr_proxies.b2nd", mode="r")
79+
expr_opened = blosc2.open("expr_proxies.b2nd", mode="r", deserialize="full")
8080
assert isinstance(expr_opened, blosc2.LazyExpr)
8181

8282
# All

0 commit comments

Comments
 (0)