summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy McCurdy <andy@andymccurdy.com>2019-05-26 17:25:57 -0700
committerAndy McCurdy <andy@andymccurdy.com>2019-05-26 17:25:57 -0700
commit4986b5541e804257bee108908c2184d8ec6dd79c (patch)
treec1d203592e4e6b8fe9e331c87d1f59787b2d1409
parent00adde79dd058ca7086bc41563fad145800b6b9b (diff)
downloadredis-py-monitor.tar.gz
fix py2 compatmonitor
-rw-r--r--tests/test_monitor.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_monitor.py b/tests/test_monitor.py
index f46eeba..9e9ee83 100644
--- a/tests/test_monitor.py
+++ b/tests/test_monitor.py
@@ -1,4 +1,5 @@
from __future__ import unicode_literals
+from redis._compat import unicode
def wait_for_command(client, monitor, command):
@@ -28,8 +29,8 @@ class TestPipeline(object):
response = wait_for_command(r, m, 'PING')
assert isinstance(response['time'], float)
assert response['db'] == 9
- assert isinstance(response['client_address'], str)
- assert isinstance(response['client_port'], str)
+ assert isinstance(response['client_address'], unicode)
+ assert isinstance(response['client_port'], unicode)
assert response['command'] == 'PING'
def test_command_with_quoted_key(self, r):