Skip to content

Commit

Permalink
Fixes build
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Mar 4, 2016
1 parent 773e391 commit bb4b71a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions kombu/tests/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from base64 import b64decode

from kombu.exceptions import ContentDisallowed, EncodeError, DecodeError
from kombu.five import text_t, bytes_t
from kombu.five import text_t, bytes_t, items
from kombu.serialization import (
registry, register, SerializerNotInstalled,
raw_encode, register_yaml, register_msgpack,
Expand Down Expand Up @@ -60,8 +60,13 @@


msgpack_py_data = dict(py_data)
msgpack_py_data['unicode'] = b'Th quick brown fox jumps over th lazy dog'
msgpack_py_data['list'] = [str_to_bytes(x) for x in msgpack_py_data['list']]
msgpack_py_data = dict(
(str_to_bytes(k), str_to_bytes(v) if isinstance(v, text_t) else v)
for k, v in items(msgpack_py_data)
)
# Unicode chars are lost in transmit :(
msgpack_py_data['unicode'] = 'Th quick brown fox jumps over th lazy dog'
msgpack_data = b64decode(str_to_bytes("""\
haNpbnQKpWZsb2F0y0AJIftTyNTxpGxpc3SUpmdlb3JnZaVqZXJyeaZlbGFpbmWlY29zbW+mc3Rya\
W5n2gArVGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZ6d1bmljb2Rl2g\
Expand Down

0 comments on commit bb4b71a

Please sign in to comment.