From 4986b5541e804257bee108908c2184d8ec6dd79c Mon Sep 17 00:00:00 2001 From: Andy McCurdy Date: Sun, 26 May 2019 17:25:57 -0700 Subject: fix py2 compat --- tests/test_monitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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): -- cgit v1.2.1