mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-03 02:50:55 +00:00
Fix minor bugs and tuning unpacking dict.
This commit is contained in:
parent
0536d1bd0c
commit
22920baae6
2 changed files with 17 additions and 10 deletions
|
|
@ -151,7 +151,7 @@ def test_odict():
|
|||
od = odict(seq)
|
||||
assert unpackb(packb(od), use_list=1) == dict(seq)
|
||||
def pair_hook(seq):
|
||||
return seq
|
||||
return list(seq)
|
||||
assert unpackb(packb(od), object_pairs_hook=pair_hook, use_list=1) == seq
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue