summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-02-13 09:57:51 +0900
committerINADA Naoki <inada-n@klab.com>2014-02-13 09:57:51 +0900
commitcf63f19211797261b117227f23066952efebca29 (patch)
tree52f1acb0864ff79158072950d0e8637a5140228f
parent0cab6092e456ffa04834233ffb01acb48d0869c3 (diff)
downloadmsgpack-python-cf63f19211797261b117227f23066952efebca29.tar.gz
Fix test
-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