Skip to content

Commit

Permalink
updated the finally block
Browse files Browse the repository at this point in the history
  • Loading branch information
Anu-Ra-g committed Jul 29, 2024
1 parent 7925461 commit bf20331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kerchunk/tests/test_grib.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def test_make_test_grib_idx_files_local(basename, local, storage_options, grib_f
assert test_file in fs.ls(path=".")
assert idx_file in fs.ls(path=".")
finally:
if os.path.isfile(test_file):
if test_file in fs.ls(path="."):
os.remove(test_file)
if os.path.isfile(idx_file):
if idx_file in fs.ls(path="."):
os.remove(idx_file)

0 comments on commit bf20331

Please sign in to comment.