mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 04:13:16 +00:00
Fix test
This commit is contained in:
parent
0cab6092e4
commit
cf63f19211
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ def test_unpacker_hook_refcnt():
|
|||
|
||||
basecnt = sys.getrefcount(hook)
|
||||
|
||||
up = Unpacker(object_pairs_hook=hook, list_hook=hook)
|
||||
up = Unpacker(object_hook=hook, list_hook=hook)
|
||||
|
||||
assert sys.getrefcount(hook) >= basecnt + 2
|
||||
|
||||
|
@ -35,7 +35,7 @@ def test_unpacker_hook_refcnt():
|
|||
up.feed(packb([{}]))
|
||||
assert up.unpack() == [{}]
|
||||
assert up.unpack() == [{}]
|
||||
assert result == [[{}], [{}]]
|
||||
assert result == [{}, [{}], {}, [{}]]
|
||||
|
||||
del up
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue