mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
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:
parent
f0f2c0b397
commit
deeda31a88
2 changed files with 49 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue