summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2014-08-31 02:29:05 +0900
committerINADA Naoki <inada-n@klab.com>2014-08-31 02:29:05 +0900
commitd6c773dc4d19e4e8bfe2931d8daf251a8b302f25 (patch)
tree33db2982fc23d3f3a5c6e72439839486dc60f436 /test
parent5cfa49bb2c89d6a4dde63d29753624aaca510493 (diff)
downloadmsgpack-python-d6c773dc4d19e4e8bfe2931d8daf251a8b302f25.tar.gz
Fix build and tests.
Diffstat (limited to 'test')
-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)