mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-11-11 06:51:04 +00:00
Drop python2 support (#519)
The PR removes python2 references and cases. Close #518 Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
parent
45f848695c
commit
feec06206c
17 changed files with 58 additions and 143 deletions
|
|
@ -70,7 +70,7 @@ def test_unpacker_ext_hook():
|
|||
|
||||
|
||||
def test_unpacker_tell():
|
||||
objects = 1, 2, u"abc", u"def", u"ghi"
|
||||
objects = 1, 2, "abc", "def", "ghi"
|
||||
packed = b"\x01\x02\xa3abc\xa3def\xa3ghi"
|
||||
positions = 1, 2, 6, 10, 14
|
||||
unpacker = Unpacker(BytesIO(packed))
|
||||
|
|
@ -80,7 +80,7 @@ def test_unpacker_tell():
|
|||
|
||||
|
||||
def test_unpacker_tell_read_bytes():
|
||||
objects = 1, u"abc", u"ghi"
|
||||
objects = 1, "abc", "ghi"
|
||||
packed = b"\x01\x02\xa3abc\xa3def\xa3ghi"
|
||||
raw_data = b"\x02", b"\xa3def", b""
|
||||
lenghts = 1, 4, 999
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue