Reestablish backward compatibility

This commit is contained in:
Matthias 2021-12-25 13:47:28 +01:00
parent b1feb69ca9
commit 356b2d3d91

View File

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