summaryrefslogtreecommitdiff
path: root/test/test_sequnpack.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_sequnpack.py
parentdd5c76b9552e371503535ce10a0314151e62fa28 (diff)
downloadmsgpack-python-219d47503ca982996b03f4396fdd2929c9905356.tar.gz
Split exceptions.
Diffstat (limited to 'test/test_sequnpack.py')
-rw-r--r--test/test_sequnpack.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_sequnpack.py b/test/test_sequnpack.py
index 769f3ff..f767726 100644
--- a/test/test_sequnpack.py
+++ b/test/test_sequnpack.py
@@ -3,6 +3,7 @@
import six
from msgpack import Unpacker, BufferFull
+from msgpack.exceptions import OutOfData
import nose
def test_foobar():
@@ -17,7 +18,7 @@ def test_foobar():
try:
o = unpacker.unpack()
assert 0, "should raise exception"
- except StopIteration:
+ except OutOfData:
assert 1, "ok"
unpacker.feed(b'foo')
@@ -41,7 +42,7 @@ def test_foobar_skip():
try:
o = unpacker.unpack()
assert 0, "should raise exception"
- except StopIteration:
+ except OutOfData:
assert 1, "ok"
def test_maxbuffersize():