mirror of
https://github.com/pocketpy/pocketpy
synced 2026-06-21 07:57:10 +08:00
Update 723_msgpack.py
This commit is contained in:
parent
d527b4dbc9
commit
338547dc8d
@ -65,11 +65,8 @@ assert msgpack.dumps([]) == b'\x90'
|
||||
assert msgpack.dumps([1, 2, 3]) == b'\x93\x01\x02\x03'
|
||||
assert msgpack.dumps([1]) == b'\x91\x01'
|
||||
|
||||
try:
|
||||
msgpack.dumps({1: 2})
|
||||
assert False
|
||||
except TypeError:
|
||||
assert True
|
||||
_o = msgpack.dumps({1: 2})
|
||||
assert msgpack.loads(_o) == {1: 2}
|
||||
|
||||
try:
|
||||
msgpack.dumps(type)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user