8000 Fix warnings. · peter80/msgpack-python@477d3b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 477d3b1

Browse files
committed
Fix warnings.
1 parent e381032 commit 477d3b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_obj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_decode_hook():
2929
def test_decode_pairs_hook():
3030
packed = packb([3, {1: 2, 3: 4}])
3131
prod_sum = 1 * 2 + 3 * 4
32-
unpacked = unpackb(packed, object_pairs_hook=lambda l: sum(k * v for k, v in l))
32+
unpacked = unpackb(packed, object_pairs_hook=lambda l: sum(k * v for k, v in l), use_list=1)
3333
eq_(unpacked[1], prod_sum)
3434

3535
@raises(ValueError)

test/test_pack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_odict():
112112
assert_equal(unpackb(packb(od), use_list=1), dict(seq))
113113
def pair_hook(seq):
114114
return seq
115-
assert_equal(unpackb(packb(od), object_pairs_hook=pair_hook), seq)
115+
assert_equal(unpackb(packb(od), object_pairs_hook=pair_hook, use_list=1), seq)
116116

117117

118118
if __name__ == '__main__':

0 commit comments

Comments
 (0)
0