Fix build and tests.

This commit is contained in:
INADA Naoki 2014-08-31 02:29:05 +09:00
parent 5cfa49bb2c
commit d6c773dc4d
2 changed files with 3 additions and 11 deletions

View file

@ -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)