Update 723_msgpack.py

This commit is contained in:
blueloveTH 2026-06-18 09:27:39 +08:00
parent d527b4dbc9
commit 338547dc8d

View File

@ -65,11 +65,8 @@ assert msgpack.dumps([]) == b'\x90'
assert msgpack.dumps([1, 2, 3]) == b'\x93\x01\x02\x03' assert msgpack.dumps([1, 2, 3]) == b'\x93\x01\x02\x03'
assert msgpack.dumps([1]) == b'\x91\x01' assert msgpack.dumps([1]) == b'\x91\x01'
try: _o = msgpack.dumps({1: 2})
msgpack.dumps({1: 2}) assert msgpack.loads(_o) == {1: 2}
assert False
except TypeError:
assert True
try: try:
msgpack.dumps(type) msgpack.dumps(type)