ionelmc / python-redis-lock

Lock context manager implemented via redis SET NX EX and BLPOP.
https://pypi.python.org/pypi/python-redis-lock
BSD 2-Clause "Simplified" License
551 stars 77 forks source link

3.6 test failures #76

Closed Bubu closed 4 years ago

Bubu commented 4 years ago

I get the following test failures on 3.6. All tests pass on 3.5.

=========================================================================================================== short test summary info ===========================================================================================================
FAILED tests/test_redis_lock.py::test_timeout_int_conversion[decode_responses=True-00] - redis_lock.InvalidTimeout: Timeout (0) cannot be less than or equal to 0
FAILED tests/test_redis_lock.py::test_timeout_int_conversion[decode_responses=True-01] - redis_lock.InvalidTimeout: Timeout (0) cannot be less than or equal to 0
FAILED tests/test_redis_lock.py::test_timeout_int_conversion[decode_responses=False-00] - redis_lock.InvalidTimeout: Timeout (0) cannot be less than or equal to 0
FAILED tests/test_redis_lock.py::test_timeout_int_conversion[decode_responses=False-01] - redis_lock.InvalidTimeout: Timeout (0) cannot be less than or equal to 0
FAILED tests/test_redis_lock.py::test_expire_less_than_timeout[decode_responses=True] - redis_lock.TimeoutTooLarge: Timeout (2) cannot be greater than expire (1)
FAILED tests/test_redis_lock.py::test_expire_less_than_timeout[decode_responses=False] - redis_lock.TimeoutTooLarge: Timeout (2) cannot be greater than expire (1)
FAILED tests/test_redis_lock.py::test_expire_int_conversion - assert 0 is None
FAILED tests/test_redis_lock.py::test_borken_expires - AttributeError: 'object' object has no attribute 'evalsha'
ionelmc commented 4 years ago

Perhaps you have some build caching problem there? Eg: new tests run with previous release.

Bubu commented 4 years ago

Mh, this might very well be the case... looking!

Bubu commented 4 years ago

Right, that was it. PYTHONPATH was pointing to the wrong dir.

Thanks!