Skip to content

Commit 6de6630

Browse files
committed
Normalize b2object urlpath expectations in tests
1 parent 2f332b1 commit 6de6630

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_b2objects.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def test_lazyexpr_from_cframe_roundtrip(tmp_path):
102102
"version": 1,
103103
"expression": "a + b",
104104
"operands": {
105-
"a": {"kind": "urlpath", "version": 1, "urlpath": str(tmp_path / "a.b2nd")},
106-
"b": {"kind": "urlpath", "version": 1, "urlpath": str(tmp_path / "b.b2nd")},
105+
"a": {"kind": "urlpath", "version": 1, "urlpath": (tmp_path / "a.b2nd").as_posix()},
106+
"b": {"kind": "urlpath", "version": 1, "urlpath": (tmp_path / "b.b2nd").as_posix()},
107107
},
108108
}
109109

@@ -161,8 +161,8 @@ def test_lazyudf_from_cframe_roundtrip(tmp_path):
161161
assert payload["dtype"] == np.dtype(np.float64).str
162162
assert payload["shape"] == [5]
163163
assert payload["operands"] == {
164-
"o0": {"kind": "urlpath", "version": 1, "urlpath": str(tmp_path / "a.b2nd")},
165-
"o1": {"kind": "urlpath", "version": 1, "urlpath": str(tmp_path / "b.b2nd")},
164+
"o0": {"kind": "urlpath", "version": 1, "urlpath": (tmp_path / "a.b2nd").as_posix()},
165+
"o1": {"kind": "urlpath", "version": 1, "urlpath": (tmp_path / "b.b2nd").as_posix()},
166166
}
167167

168168
restored = blosc2.from_cframe(expr.to_cframe())

0 commit comments

Comments
 (0)