Skip to content

Commit 7c0345c

Browse files
committed
Revert "add tests for load_array" partially
This reverts commit 2d0f6e9 partially.
1 parent d432f48 commit 7c0345c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tests/test_api.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
)
4040
from zarr.core.buffer import NDArrayLike
4141
from zarr.errors import MetadataValidationError
42-
from zarr.storage import MemoryStore, ZipStore
42+
from zarr.storage import MemoryStore
4343
from zarr.storage._utils import normalize_path
4444
from zarr.testing.utils import gpu_test
4545

@@ -400,17 +400,6 @@ def test_load_array(sync_store: Store) -> None:
400400
else:
401401
assert_array_equal(bar, array)
402402

403-
def test_load_zip(tmp_path: pathlib.Path) -> None:
404-
file = tmp_path / "test.zip"
405-
# Create a zip file with some data
406-
with ZipStore(file, mode="w", read_only=False) as zs:
407-
save(zs, np.arange(100).reshape(10, 10), path="data")
408-
with ZipStore(file, mode="r", read_only=False) as zs:
409-
data = zarr.load(store=zs, path="data") # This works
410-
print(data.shape)
411-
with ZipStore(file, mode="r") as zs:
412-
data = zarr.load(store=zs, path="data") # This does not work
413-
print(data.shape)
414403

415404
def test_tree() -> None:
416405
pytest.importorskip("rich")

0 commit comments

Comments
 (0)