Skip to content

Commit

Permalink
Add try statement to test to pass test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer A Clark committed Nov 13, 2020
1 parent 4cd87df commit e821063
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mapsci/tests/test_mapsci.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def test_mapsci_log_file():
if os.path.isfile(fname):
flag = True
mapsci.initiate_logger(log_file=False)
os.remove(fname)
try:
os.remove(fname)
except:
print("Error removing log file")
else:
flag = False

Expand Down

0 comments on commit e821063

Please sign in to comment.