diff options
| author | Inada Naoki <songofacandy@gmail.com> | 2019-12-05 21:34:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-05 21:34:10 +0900 |
| commit | 7e9905bdfaecde83ddb1a4575e734a10b055fde9 (patch) | |
| tree | 2b9900fcdf0b5b1986b024edb2802971399b8fb8 /test/test_sequnpack.py | |
| parent | de320488ae494b85a03b60dd33f91b650033d775 (diff) | |
| download | msgpack-python-7e9905bdfaecde83ddb1a4575e734a10b055fde9.tar.gz | |
Use new msgpack spec by default. (#386)
Diffstat (limited to 'test/test_sequnpack.py')
| -rw-r--r-- | test/test_sequnpack.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_sequnpack.py b/test/test_sequnpack.py index e576571..9b69479 100644 --- a/test/test_sequnpack.py +++ b/test/test_sequnpack.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # coding: utf-8 - import io from msgpack import Unpacker, BufferFull from msgpack import pack @@ -26,7 +25,7 @@ def test_partialdata(): with raises(StopIteration): next(iter(unpacker)) unpacker.feed(b"o") - assert next(iter(unpacker)) == b"hallo" + assert next(iter(unpacker)) == "hallo" def test_foobar(): @@ -98,13 +97,13 @@ def test_readbytes(): def test_issue124(): unpacker = Unpacker() unpacker.feed(b"\xa1?\xa1!") - assert tuple(unpacker) == (b"?", b"!") + assert tuple(unpacker) == ("?", "!") assert tuple(unpacker) == () unpacker.feed(b"\xa1?\xa1") - assert tuple(unpacker) == (b"?",) + assert tuple(unpacker) == ("?",) assert tuple(unpacker) == () unpacker.feed(b"!") - assert tuple(unpacker) == (b"!",) + assert tuple(unpacker) == ("!",) assert tuple(unpacker) == () |
