8000 Fix test · faerot/msgpack-python@cf63f19 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf63f19

Browse files
committed
Fix test
1 parent 0cab609 commit cf63f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_unpack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ def hook(x):
2727

2828
basecnt = sys.getrefcount(hook)
2929

30-
up = Unpacker(object_pairs_hook=hook, list_hook=hook)
30+
up = Unpacker(object_hook=hook, list_hook=hook)
3131

3232
assert sys.getrefcount(hook) >= basecnt + 2
3333

3434
up.feed(packb([{}]))
3535
up.feed(packb([{}]))
3636
assert up.unpack() == [{}]
3737
assert up.unpack() == [{}]
38-
assert result == [[{}], [{}]]
38+
assert result == [{}, [{}], {}, [{}]]
3939

4040
del up
4141

0 commit comments

Comments
 (0)
0