Skip to content

Commit

Permalink
Merge pull request #5871 from minrk/msgpack-unicode
Browse files Browse the repository at this point in the history
specify encoding in msgpack.unpackb
  • Loading branch information
takluyver committed May 16, 2014
2 parents 98a0976 + a7d1875 commit e7440b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion IPython/kernel/zmq/tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,12 @@ def test_datetimes_pickle(self):

@skipif(module_not_available('msgpack'))
def test_datetimes_msgpack(self):
session = ss.Session(packer='msgpack.packb', unpacker='msgpack.unpackb')
import msgpack

session = ss.Session(
pack=msgpack.packb,
unpack=lambda buf: msgpack.unpackb(buf, encoding='utf8'),
)
self._datetime_test(session)

def test_send_raw(self):
Expand Down

0 comments on commit e7440b1

Please sign in to comment.