Add unittests to document serialisation of tuples (#246)

Also, fix formatting of error message in case of tuple.
See https://github.com/msgpack/msgpack-python/issues/245
This commit is contained in:
Lorenzo Bolla 2017-09-30 08:23:55 +01:00 committed by INADA Naoki
parent f0f2c0b397
commit deeda31a88
2 changed files with 49 additions and 2 deletions

View file

@ -795,7 +795,7 @@ class Packer(object):
obj = self._default(obj)
default_used = 1
continue
raise TypeError("Cannot serialize %r" % obj)
raise TypeError("Cannot serialize %r" % (obj, ))
def pack(self, obj):
self._pack(obj)