Prevent exception, ensure deletion occurs

This commit is contained in:
Matthias 2021-12-25 14:03:44 +01:00
parent 356b2d3d91
commit 6fdad8c6bd

View File

@ -192,7 +192,7 @@ def test_start_no_data(mocker, hyperopt_conf) -> None:
# Cleanup since that failed hyperopt start leaves a lockfile. # Cleanup since that failed hyperopt start leaves a lockfile.
try: try:
Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink(missing_ok=True) Path(Hyperopt.get_lock_filename(hyperopt_conf)).unlink()
except Exception: except Exception:
pass pass