summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2018-10-31 23:19:59 -0700
committerAndy McCurdy <andy@andymccurdy.com>2018-10-31 23:19:59 -0700
commitc7dbaa142917faaf6075ad8baec9f10b3731794d (patch)
treef3e965bcae904d18de68b78d0c9bc35650e7aeeb
parent47dc6aec85dab10a2a1a6dfbb25f78062c7285d9 (diff)
downloadredis-py-c7dbaa142917faaf6075ad8baec9f10b3731794d.tar.gz
python2 compat
-rw-r--r--tests/test_commands.py6
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')