diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2019-01-02 13:22:29 -0800 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2019-01-02 13:22:29 -0800 |
commit | 6a6548ea99c2c4667ae0ab82fde056b2acde777b (patch) | |
tree | 5443a5c0078d09c865fecbecece3251f38363cc0 /tests/test_lock.py | |
parent | 15853dc45bf796d003b7b313d1d4821ae2c8218c (diff) | |
download | redis-py-lock-owned.tar.gz |
ensure token comparison is always comparing bytes objectslock-owned
Diffstat (limited to 'tests/test_lock.py')
-rw-r--r-- | tests/test_lock.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_lock.py b/tests/test_lock.py index f8218f6..f92afec 100644 --- a/tests/test_lock.py +++ b/tests/test_lock.py @@ -28,7 +28,7 @@ class TestLock(object): lock = self.get_lock(r, 'foo') assert lock.acquire(blocking=False, token='test') assert r.get('foo') == b'test' - assert lock.local.token == 'test' + assert lock.local.token == b'test' assert r.ttl('foo') == -1 lock.release() assert r.get('foo') is None |