Skip to content

Commit cf72834

Browse files
committed
pureposixpath instead of posixpath
1 parent dd4174c commit cf72834

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_group.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pickle
66
import time
77
import warnings
8-
from pathlib import PosixPath
8+
from pathlib import PurePosixPath
99
from typing import TYPE_CHECKING, Any, Literal
1010

1111
import numpy as np
@@ -1459,7 +1459,7 @@ async def test_create_nodes(store: Store, zarr_format: ZarrFormat) -> None:
14591459
}
14601460
spath = await make_store_path(store, path="foo")
14611461
observed_nodes = {
1462-
str(PosixPath(a.name).relative_to("/" + path)): a
1462+
str(PurePosixPath(a.name).relative_to("/" + path)): a
14631463
async for a in create_nodes(store_path=spath, nodes=expected_meta)
14641464
}
14651465
assert expected_meta == {k: v.metadata for k, v in observed_nodes.items()}
@@ -1482,7 +1482,7 @@ async def test_create_hierarchy(store: Store, zarr_format: ZarrFormat) -> None:
14821482
expected_meta = hierarchy_spec | {"group/subgroup": GroupMetadata(zarr_format=zarr_format)}
14831483
spath = await make_store_path(store, path="foo")
14841484
observed_nodes = {
1485-
str(PosixPath(a.name).relative_to("/" + path)): a
1485+
str(PurePosixPath(a.name).relative_to("/" + path)): a
14861486
async for a in create_hierarchy(store_path=spath, nodes=expected_meta)
14871487
}
14881488
assert expected_meta == {k: v.metadata for k, v in observed_nodes.items()}

0 commit comments

Comments
 (0)