lock test name fix

This commit is contained in:
Ivan Shcheklein
2022-08-09 00:47:04 +03:00
committed by Ruslan Kuprieiev
parent 9180a718c1
commit b7c0c41262
+2 -2
View File
@@ -15,7 +15,7 @@ def test_with(tmp_dir, dvc, mocker):
pass
def test_(tmp_dir, dvc, mocker):
def test_unlock_lock_failed(tmp_dir, dvc, mocker):
# patching to speedup tests
mocker.patch("dvc.lock.DEFAULT_TIMEOUT", 0.01)
@@ -27,7 +27,7 @@ def test_(tmp_dir, dvc, mocker):
# repro of a stage) in with. We should see LockError exception here.
with pytest.raises(LockError), lock:
lock.unlock()
lock_ext.lock() # imitate an exernal process has time to lock it
lock_ext.lock() # imitate an exernal process had time to lock it
lock.lock()