mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-02 02:20:54 +00:00
Add some test for timestamp (#403)
This commit is contained in:
parent
ff1f5f89d9
commit
9d79351e99
6 changed files with 40 additions and 35 deletions
|
|
@ -22,10 +22,7 @@ def test_tuple():
|
|||
|
||||
def default(o):
|
||||
if isinstance(o, tuple):
|
||||
return {
|
||||
"__type__": "tuple",
|
||||
"value": list(o),
|
||||
}
|
||||
return {"__type__": "tuple", "value": list(o)}
|
||||
raise TypeError("Unsupported type %s" % (type(o),))
|
||||
|
||||
def convert(o):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue