Skip to content

Commit

Permalink
pragma no cover for exceptional case
Browse files Browse the repository at this point in the history
  • Loading branch information
Carreau authored and grlee77 committed Jun 23, 2021
1 parent b7aa2d8 commit 30afcbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zarr/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ def rename(self, src_path: str, dst_path: str) -> None:
if not self.is_erasable():
raise NotImplementedError(
f'{type(self)} is not erasable, cannot call "rmdir"'
)
) # pragma: no cover
_rename_from_keys(self, src_path, dst_path)

def rmdir(self, path: str = "") -> None:
if not self.is_erasable():
raise NotImplementedError(
f'{type(self)} is not erasable, cannot call "rmdir"'
)
) # pragma: no cover
path = normalize_storage_path(path)
_rmdir_from_keys(self, path)

Expand Down

0 comments on commit 30afcbb

Please sign in to comment.