diff options
author | Ask Solem <ask@celeryproject.org> | 2013-09-10 18:05:25 +0100 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2013-09-10 18:05:25 +0100 |
commit | 11d5674a8dc567f69d6a7a4f119e45faec88c0d8 (patch) | |
tree | 96aef0e4cca6d26047937a30b58981cd7b7b11d6 | |
parent | ef03c5a344a91950b48ec0afc689078567380779 (diff) | |
download | kombu-11d5674a8dc567f69d6a7a4f119e45faec88c0d8.tar.gz |
[Py3.2] msgpack transforms lists into tuples in some versions
-rw-r--r-- | kombu/tests/test_serialization.py | 6 |
1 files changed, 5 insertions, 1 deletions
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, |