Skip to content

Commit 15d0e12

Browse files
committed
Skip coverage of temp file cleanup
In the ideal case, this cleanup step never happens on CI as the file got moved into place and so no longer exists at the old location. Given this, we ignore coverage on this line.
1 parent 06475af commit 15d0e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zarr/storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def __setitem__(self, key, value):
778778

779779
finally:
780780
# clean up if temp file still exists for whatever reason
781-
if temp_path is not None and os.path.exists(temp_path):
781+
if temp_path is not None and os.path.exists(temp_path): # pragma: no cover
782782
os.remove(temp_path)
783783

784784
def __delitem__(self, key):

0 commit comments

Comments
 (0)