diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-10-31 23:19:59 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2018-10-31 23:19:59 -0700 |
commit | c7dbaa142917faaf6075ad8baec9f10b3731794d (patch) | |
tree | f3e965bcae904d18de68b78d0c9bc35650e7aeeb | |
parent | 47dc6aec85dab10a2a1a6dfbb25f78062c7285d9 (diff) | |
download | redis-py-c7dbaa142917faaf6075ad8baec9f10b3731794d.tar.gz |
python2 compat
-rw-r--r-- | tests/test_commands.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 78888fb..3f6c5b1 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -7,7 +7,7 @@ import redis import time from redis._compat import (unichr, u, b, ascii_letters, iteritems, iterkeys, - itervalues) + itervalues, long) from redis.client import parse_info from redis import exceptions @@ -1774,8 +1774,8 @@ class TestRedisCommands(object): ] # we can't determine the idle time, so just make sure it's an int - assert isinstance(info[0].pop('idle'), int) - assert isinstance(info[1].pop('idle'), int) + assert isinstance(info[0].pop('idle'), (int, long)) + assert isinstance(info[1].pop('idle'), (int, long)) assert info == expected @skip_if_server_version_lt('5.0.0') |