Skip to content

Commit 59aeb23

Browse files
committed
Fix errr raised when opening non-existent path
1 parent 4dd3f7e commit 59aeb23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
from zarr.errors import (
4646
ArrayNotFoundError,
4747
MetadataValidationError,
48-
NodeNotFoundError,
4948
ZarrDeprecationWarning,
5049
ZarrUserWarning,
5150
)
@@ -191,7 +190,7 @@ async def test_open_array(memory_store: MemoryStore, zarr_format: ZarrFormat) ->
191190
assert z.read_only
192191

193192
# path not found
194-
with pytest.raises(NodeNotFoundError):
193+
with pytest.raises(FileNotFoundError):
195194
zarr.api.synchronous.open(store="doesnotexist", mode="r", zarr_format=zarr_format)
196195

197196

0 commit comments

Comments
 (0)