From 15d0e126d845bcea3807b53d37316290dad3c174 Mon Sep 17 00:00:00 2001 From: John Kirkham Date: Tue, 4 Dec 2018 09:58:09 -0500 Subject: [PATCH] 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. --- zarr/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zarr/storage.py b/zarr/storage.py index 6720b42d12..65afc58539 100644 --- a/zarr/storage.py +++ b/zarr/storage.py @@ -778,7 +778,7 @@ def __setitem__(self, key, value): finally: # clean up if temp file still exists for whatever reason - if temp_path is not None and os.path.exists(temp_path): + if temp_path is not None and os.path.exists(temp_path): # pragma: no cover os.remove(temp_path) def __delitem__(self, key):