From ba101ae2de1b83063924e145ff6cf8773818f825 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Mon, 8 Aug 2022 12:48:17 -0700 Subject: [PATCH] lock test name fix --- tests/func/test_lock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/func/test_lock.py b/tests/func/test_lock.py index 461d2c23de..10d7899a63 100644 --- a/tests/func/test_lock.py +++ b/tests/func/test_lock.py @@ -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()