Skip to content

Commit

Permalink
Updated for context acquire with timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jtc42 authored Jun 24, 2020
1 parent b7d1594 commit cb822bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_core_lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_rlock_acquire_timeout(this_lock):

# Assert acquisition fails using context manager
with pytest.raises(LockError):
with this_lock.acquire_timeout(0.01):
with this_lock(timeout=0.01):
pass

# Force ownership
Expand Down

0 comments on commit cb822bb

Please sign in to comment.