diff options
author | INADA Naoki <songofacandy@gmail.com> | 2011-01-29 23:22:41 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2011-01-29 23:22:41 +0900 |
commit | 3aaf5f5a7afb4d51e6384f87a3f70a4235b9afb5 (patch) | |
tree | b5e54024508b81a128218d9545e2e42ff96373d0 /test/test_obj.py | |
parent | 9e8261cbd94ca146bdf2fa72c73a19468f96ca74 (diff) | |
download | msgpack-python-3aaf5f5a7afb4d51e6384f87a3f70a4235b9afb5.tar.gz |
python: Fix segmentation fault when `default` returns it's argument.
Diffstat (limited to 'test/test_obj.py')
-rw-r--r-- | test/test_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_obj.py b/test/test_obj.py index bc85736..0eebe7b 100644 --- a/test/test_obj.py +++ b/test/test_obj.py @@ -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) |