Skip to content

Commit cb822bb

Browse files
authored
Updated for context acquire with timeout
1 parent b7d1594 commit cb822bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_core_lock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_rlock_acquire_timeout(this_lock):
103103

104104
# Assert acquisition fails using context manager
105105
with pytest.raises(LockError):
106-
with this_lock.acquire_timeout(0.01):
106+
with this_lock(timeout=0.01):
107107
pass
108108

109109
# Force ownership

0 commit comments

Comments
 (0)