summaryrefslogtreecommitdiff
path: root/tests/test_lock.py
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-12-03 14:08:01 -0800
committerAndy McCurdy <andy@andymccurdy.com>2018-12-03 14:08:01 -0800
commitd7bd3e6e6aa9ba42e796f053208dde5b3ea81b3b (patch)
treef897562751e5e439f872c3cfdda519a18a7a394e /tests/test_lock.py
parentdcb68aae42a2a223c40ba9c722676004e8bbe92e (diff)
downloadredis-py-d7bd3e6e6aa9ba42e796f053208dde5b3ea81b3b.tar.gz
rename new LockErrorNotOwned to LockNotOwnedError
Diffstat (limited to 'tests/test_lock.py')
-rw-r--r--tests/test_lock.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_lock.py b/tests/test_lock.py
index 5ad7d5c..ea45379 100644
--- a/tests/test_lock.py
+++ b/tests/test_lock.py
@@ -1,7 +1,7 @@
import pytest
import time
-from redis.exceptions import LockError, LockErrorNotOwned
+from redis.exceptions import LockError, LockNotOwnedError
from redis.lock import Lock
@@ -85,7 +85,7 @@ class TestLock(object):
lock.acquire(blocking=False)
# manually change the token
r.set('foo', 'a')
- with pytest.raises(LockErrorNotOwned):
+ with pytest.raises(LockNotOwnedError):
lock.release()
# even though we errored, the token is still cleared
assert lock.local.token is None
@@ -122,7 +122,7 @@ class TestLock(object):
lock = self.get_lock(r, 'foo', timeout=10)
assert lock.acquire(blocking=False)
r.set('foo', 'a')
- with pytest.raises(LockErrorNotOwned):
+ with pytest.raises(LockNotOwnedError):
lock.extend(10)