From 550eee8106ca5984f104b3a2a79299d9ae0821af Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Tue, 18 Aug 2015 13:28:40 +0200 Subject: [PATCH] Fix tests under Redis 3.x; we can be of an "embedded string" format now. Signed-off-by: Chris Lamb --- tests/test_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_commands.py b/tests/test_commands.py index 2e104ed..c0e56b0 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -112,7 +112,7 @@ def test_object(self, r): r['a'] = 'foo' assert isinstance(r.object('refcount', 'a'), int) assert isinstance(r.object('idletime', 'a'), int) - assert r.object('encoding', 'a') == b('raw') + assert r.object('encoding', 'a') in (b('raw'), b('embstr')) assert r.object('idletime', 'invalid-key') is None def test_ping(self, r):