mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 04:13:16 +00:00
python: Fix segmentation fault when default
returns it's argument.
This commit is contained in:
parent
9e8261cbd9
commit
3aaf5f5a7a
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@ def test_decode_hook():
|
|||
unpacked = unpacks(packed, object_hook=_decode_complex)
|
||||
eq_(unpacked[1], 1+2j)
|
||||
|
||||
@raises(TypeError)
|
||||
@raises(ValueError)
|
||||
def test_bad_hook():
|
||||
packed = packs([3, 1+2j], default=lambda o: o)
|
||||
unpacked = unpacks(packed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue