Skip to content

Commit 49b3fb8

Browse files
committed
fix zarr-python tests on Windows?
1 parent 0120621 commit 49b3fb8

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

src/test/python-scripts/zarr_python_read.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import numpy as np
55

66
import zarr
7-
from zarr.storage import LocalStore
87
from parse_codecs import parse_codecs_zarr_python
98

109
codec_string = sys.argv[1]
@@ -14,12 +13,12 @@
1413

1514
expected_data = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1615

17-
a = zarr.open_array(store=LocalStore(store_path))
16+
a = zarr.open_array(store=zarr.storage._local.LocalStore(store_path))
1817
read_data = a[:, :]
1918
assert np.array_equal(read_data, expected_data), f"got:\n {read_data} \nbut expected:\n {expected_data}"
2019

2120
b = zarr.create_array(
22-
LocalStore(store_path / "expected"),
21+
zarr.storage._local.LocalStore(store_path / "expected"),
2322
shape=(16, 16, 16),
2423
chunks=(2, 4, 8),
2524
dtype="uint32",

src/test/python-scripts/zarr_python_read_v2.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import zarr
77

8-
from zarr.storage import LocalStore
98
from parse_codecs import parse_codecs_zarr_python
109

1110
codec_string = sys.argv[1]
@@ -15,12 +14,12 @@
1514

1615
expected_data = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1716

18-
a = zarr.open_array(store=LocalStore(store_path))
17+
a = zarr.open_array(store=zarr.storage._local.LocalStore(store_path))
1918
read_data = a[:, :]
2019
assert np.array_equal(read_data, expected_data), f"got:\n {read_data} \nbut expected:\n {expected_data}"
2120

2221
b = zarr.create_array(
23-
LocalStore(store_path / "expected"),
22+
zarr.storage._local.LocalStore(store_path / "expected"),
2423
zarr_format=2,
2524
shape=(16, 16, 16),
2625
chunks=(2, 4, 8),

src/test/python-scripts/zarr_python_write.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import numpy as np
55

66
import zarr
7-
from zarr.storage import LocalStore
87
from parse_codecs import parse_codecs_zarr_python
98

109
codec_string = sys.argv[1]
@@ -15,7 +14,7 @@
1514
testdata = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1615

1716
a = zarr.create_array(
18-
LocalStore(store_path),
17+
zarr.storage._local.LocalStore(store_path),
1918
shape=(16, 16, 16),
2019
chunks=(2, 4, 8),
2120
dtype='int32',

src/test/python-scripts/zarr_python_write_v2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import zarr
77

8-
from zarr.storage import LocalStore
98
from parse_codecs import parse_codecs_zarr_python
109

1110
codec_string = sys.argv[1]
@@ -16,7 +15,7 @@
1615
testdata = np.arange(16 * 16 * 16, dtype='int32').reshape(16, 16, 16)
1716

1817
a = zarr.create_array(
19-
LocalStore(store_path),
18+
zarr.storage._local.LocalStore(store_path),
2019
zarr_format=2,
2120
shape=(16, 16, 16),
2221
chunks=(2, 4, 8),

0 commit comments

Comments
 (0)