From 11d5674a8dc567f69d6a7a4f119e45faec88c0d8 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 10 Sep 2013 18:05:25 +0100 Subject: [PATCH] [Py3.2] msgpack transforms lists into tuples in some versions --- kombu/tests/test_serialization.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kombu/tests/test_serialization.py b/kombu/tests/test_serialization.py index 44d0665f..5bd1eeb6 100644 --- a/kombu/tests/test_serialization.py +++ b/kombu/tests/test_serialization.py @@ -191,7 +191,11 @@ class test_Serialization(TestCase): res[k] = v.encode() if isinstance(v, (list, tuple)): res[k] = [i.encode() for i in v] - print('RES: %r' % (res, )) + + # On Python 3.2 (or some msgpack versions maybe? lists are magically + # transformed into tuples... + if res != msgpack_py_data: + res['list'] = tuple(res['list']) self.assertEqual( msgpack_py_data, res,