summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_obj.py2
-rw-r--r--test/test_pack.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_obj.py b/test/test_obj.py
index 12a149f..881e627 100644
--- a/test/test_obj.py
+++ b/test/test_obj.py
@@ -29,7 +29,7 @@ def test_decode_hook():
def test_decode_pairs_hook():
packed = packb([3, {1: 2, 3: 4}])
prod_sum = 1 * 2 + 3 * 4
- unpacked = unpackb(packed, object_pairs_hook=lambda l: sum(k * v for k, v in l))
+ unpacked = unpackb(packed, object_pairs_hook=lambda l: sum(k * v for k, v in l), use_list=1)
eq_(unpacked[1], prod_sum)
@raises(ValueError)
diff --git a/test/test_pack.py b/test/test_pack.py
index 9009d35..6af87fd 100644
--- a/test/test_pack.py
+++ b/test/test_pack.py
@@ -112,7 +112,7 @@ def test_odict():
assert_equal(unpackb(packb(od), use_list=1), dict(seq))
def pair_hook(seq):
return seq
- assert_equal(unpackb(packb(od), object_pairs_hook=pair_hook), seq)
+ assert_equal(unpackb(packb(od), object_pairs_hook=pair_hook, use_list=1), seq)
if __name__ == '__main__':