diff options
author | Suhail Patel <me@suhailpatel.com> | 2016-09-19 16:45:41 +0100 |
---|---|---|
committer | Suhail Patel <me@suhailpatel.com> | 2016-09-19 16:45:41 +0100 |
commit | 4acdf08ce88e8bdc92b41d6278c4eae17eab7b78 (patch) | |
tree | 7f37bc3f1049baadfb4feb75a19abd5c1cecea4d /pymemcache | |
parent | 87247d44f723ad55f55b1e221977a908379b84f0 (diff) | |
download | pymemcache-4acdf08ce88e8bdc92b41d6278c4eae17eab7b78.tar.gz |
Fix encode/decode wrong way around
Diffstat (limited to 'pymemcache')
-rw-r--r-- | pymemcache/test/test_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pymemcache/test/test_client.py b/pymemcache/test/test_client.py index cf7ed29..1892ae0 100644 --- a/pymemcache/test/test_client.py +++ b/pymemcache/test/test_client.py @@ -735,12 +735,12 @@ class TestMockClient(ClientTestMixin, unittest.TestCase): def test_deserialization(self): def _serializer(key, value): if isinstance(value, dict): - return json.dumps(value.decode('UTF-8')), 1 + return json.dumps(value).encode('UTF-8'), 1 return value, 0 def _deserializer(key, value, flags): if flags == 1: - return json.loads(value).encode('UTF-8') + return json.loads(value.decode('UTF-8')) return value client = self.make_client([ |