summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-06-23 23:14:08 +0900
committerINADA Naoki <inada-n@klab.com>2014-06-23 23:14:08 +0900
commitf7837842f8a066a67226aef9a1770f31ef938929 (patch)
tree2e7c22b5bc8401219a07469d07ba8cb07c33fdf7
parent4094bcc43d0e69c992210295ec2b93dbf9990711 (diff)
downloadmsgpack-python-f7837842f8a066a67226aef9a1770f31ef938929.tar.gz
Fix test fail on 32bit Python.
-rw-r--r--test/test_limits.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_limits.py b/test/test_limits.py
index da8cd2b..1cfa2d6 100644
--- a/test/test_limits.py
+++ b/test/test_limits.py
@@ -21,14 +21,14 @@ def test_integer():
def test_array_header():
packer = Packer()
packer.pack_array_header(2**32-1)
- with pytest.raises(ValueError):
+ with pytest.raises((OverflowError, ValueError)):
packer.pack_array_header(2**32)
def test_map_header():
packer = Packer()
packer.pack_map_header(2**32-1)
- with pytest.raises(ValueError):
+ with pytest.raises((OverflowError, ValueError)):
packer.pack_array_header(2**32)