Skip to content

Commit 566d145

Browse files
committed
pragma no cover for exceptional case
1 parent 97e7d88 commit 566d145

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎zarr/storage.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ def rename(self, src_path: str, dst_path: str) -> None:
135135
if not self.is_erasable():
136136
raise NotImplementedError(
137137
f'{type(self)} is not erasable, cannot call "rmdir"'
138-
)
138+
) # pragma: no cover
139139
_rename_from_keys(self, src_path, dst_path)
140140

141141
def rmdir(self, path: str = "") -> None:
142142
if not self.is_erasable():
143143
raise NotImplementedError(
144144
f'{type(self)} is not erasable, cannot call "rmdir"'
145-
)
145+
) # pragma: no cover
146146
path = normalize_storage_path(path)
147147
_rmdir_from_keys(self, path)
148148

0 commit comments

Comments
 (0)