From 338547dc8d398e2f2e5146fec495a003f3f4209b Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 18 Jun 2026 09:27:39 +0800 Subject: [PATCH] Update 723_msgpack.py --- tests/723_msgpack.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/723_msgpack.py b/tests/723_msgpack.py index f7781c3e..12cf2beb 100644 --- a/tests/723_msgpack.py +++ b/tests/723_msgpack.py @@ -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)