From cf63f19211797261b117227f23066952efebca29 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Thu, 13 Feb 2014 09:57:51 +0900 Subject: Fix test --- test/test_unpack.py | 4 ++-- 1 file 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 -- cgit v1.2.1