summaryrefslogtreecommitdiff
path: root/test3/test_obj.py
diff options
context:
space:
mode:
Diffstat (limited to 'test3/test_obj.py')
-rw-r--r--test3/test_obj.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test3/test_obj.py b/test3/test_obj.py
index 236988d..b54021f 100644
--- a/test3/test_obj.py
+++ b/test3/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)