diff options
| author | INADA Naoki <songofacandy@gmail.com> | 2012-12-10 03:13:21 -0800 |
|---|---|---|
| committer | INADA Naoki <songofacandy@gmail.com> | 2012-12-10 03:13:21 -0800 |
| commit | 0d63c67e98a208f148794cea03f1b49a445bd538 (patch) | |
| tree | 2d4e78eec383de10bea5bcc68b8229669daa9680 /test/test_read_size.py | |
| parent | dd5c76b9552e371503535ce10a0314151e62fa28 (diff) | |
| parent | 1c0fe10a2fd5a32cf3f558683695220f3718a4b8 (diff) | |
| download | msgpack-python-0d63c67e98a208f148794cea03f1b49a445bd538.tar.gz | |
Merge pull request #37 from msgpack/exceptions
Split exceptions
Diffstat (limited to 'test/test_read_size.py')
| -rw-r--r-- | test/test_read_size.py | 6 |
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(): |
