summaryrefslogtreecommitdiff
path: root/test/test_sequnpack.py
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-12-05 21:34:10 +0900
committerGitHub <noreply@github.com>2019-12-05 21:34:10 +0900
commit7e9905bdfaecde83ddb1a4575e734a10b055fde9 (patch)
tree2b9900fcdf0b5b1986b024edb2802971399b8fb8 /test/test_sequnpack.py
parentde320488ae494b85a03b60dd33f91b650033d775 (diff)
downloadmsgpack-python-7e9905bdfaecde83ddb1a4575e734a10b055fde9.tar.gz
Use new msgpack spec by default. (#386)
Diffstat (limited to 'test/test_sequnpack.py')
-rw-r--r--test/test_sequnpack.py9
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) == ()