summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_unpack.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unpack.py b/test/test_unpack.py
index d6ca435..544cebf 100644
--- a/test/test_unpack.py
+++ b/test/test_unpack.py
@@ -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