summaryrefslogtreecommitdiff
path: root/test/test_read_size.py
diff options
context:
space:
mode:
authorINADA Naoki <inada-n@klab.com>2012-12-10 00:31:19 +0900
committerINADA Naoki <inada-n@klab.com>2012-12-10 00:31:19 +0900
commit219d47503ca982996b03f4396fdd2929c9905356 (patch)
treed9e5cdc89a68e504775c010dec7476da70abebbe /test/test_read_size.py
parentdd5c76b9552e371503535ce10a0314151e62fa28 (diff)
downloadmsgpack-python-219d47503ca982996b03f4396fdd2929c9905356.tar.gz
Split exceptions.
Diffstat (limited to 'test/test_read_size.py')
-rw-r--r--test/test_read_size.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_read_size.py b/test/test_read_size.py
index e130805..4e6c2b9 100644
--- a/test/test_read_size.py
+++ b/test/test_read_size.py
@@ -1,5 +1,5 @@
"""Test Unpacker's read_array_header and read_map_header methods"""
-from msgpack import packb, Unpacker
+from msgpack import packb, Unpacker, OutOfData
UnexpectedTypeException = ValueError
def test_read_array_header():
@@ -12,7 +12,7 @@ def test_read_array_header():
try:
unpacker.unpack()
assert 0, 'should raise exception'
- except StopIteration:
+ except OutOfData:
assert 1, 'okay'
@@ -25,7 +25,7 @@ def test_read_map_header():
try:
unpacker.unpack()
assert 0, 'should raise exception'
- except StopIteration:
+ except OutOfData:
assert 1, 'okay'
def test_incorrect_type_array():