Skip to content

Commit 54db5ef

Browse files
committed
1 parent b59720d commit 54db5ef

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎zarr/storage.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,8 +1340,6 @@ def __init__(self, url, normalize_keys=False, key_separator=None,
13401340

13411341
# Pass attributes to array creation
13421342
self._dimension_separator = dimension_separator
1343-
if self.fs.exists(self.path) and not self.fs.isdir(self.path):
1344-
raise FSPathExistNotDir(url)
13451343

13461344
def _default_key_separator(self):
13471345
if self.key_separator is None:

‎zarr/tests/test_storage.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,10 +1248,6 @@ def test_read_only(self):
12481248

12491249
assert store[self.root + 'foo'] == b"bar"
12501250

1251-
filepath = os.path.join(path, self.root + "foo")
1252-
with pytest.raises(ValueError):
1253-
self.create_store(path=filepath, mode='r')
1254-
12551251
def test_eq(self):
12561252
store1 = self.create_store(path="anypath")
12571253
store2 = self.create_store(path="anypath")

0 commit comments

Comments
 (0)