mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-20 04:13:16 +00:00
six.BytesIO => io.BytesIO
This commit is contained in:
parent
96d7d0edc6
commit
dee2d87d41
3 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
import six
|
||||
import io
|
||||
from msgpack import Unpacker, BufferFull
|
||||
from msgpack.exceptions import OutOfData
|
||||
from pytest import raises
|
||||
|
@ -79,7 +79,7 @@ def test_readbytes():
|
|||
assert unpacker.unpack() == ord(b'r')
|
||||
|
||||
# Test buffer refill
|
||||
unpacker = Unpacker(six.BytesIO(b'foobar'), read_size=3)
|
||||
unpacker = Unpacker(io.BytesIO(b'foobar'), read_size=3)
|
||||
assert unpacker.unpack() == ord(b'f')
|
||||
assert unpacker.read_bytes(3) == b'oob'
|
||||
assert unpacker.unpack() == ord(b'a')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue