diff options
author | INADA Naoki <songofacandy@gmail.com> | 2014-02-17 03:38:06 +0900 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2014-02-17 03:38:06 +0900 |
commit | ff263dfee81b3c20de8e75f903a9ef82ba9e7de2 (patch) | |
tree | 2c35e656b7520fed07a69325464a1b0747348a99 /test/test_unpack_raw.py | |
parent | 96d7d0edc6f70ab044b5ba6674f5ea992ef50c4d (diff) | |
parent | 0c22e775c9ea71242eec237e2e032aca749e909c (diff) | |
download | msgpack-python-ff263dfee81b3c20de8e75f903a9ef82ba9e7de2.tar.gz |
Merge pull request #91 from msgpack/reduce-six
Reduce six usage
Diffstat (limited to 'test/test_unpack_raw.py')
-rw-r--r-- | test/test_unpack_raw.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test_unpack_raw.py b/test/test_unpack_raw.py index 9f3784c..7002601 100644 --- a/test/test_unpack_raw.py +++ b/test/test_unpack_raw.py @@ -1,19 +1,19 @@ """Tests for cases where the user seeks to obtain packed msgpack objects""" -import six +import io from msgpack import Unpacker, packb def test_write_bytes(): unpacker = Unpacker() unpacker.feed(b'abc') - f = six.BytesIO() + f = io.BytesIO() assert unpacker.unpack(f.write) == ord('a') assert f.getvalue() == b'a' - f = six.BytesIO() + f = io.BytesIO() assert unpacker.skip(f.write) is None assert f.getvalue() == b'b' - f = six.BytesIO() + f = io.BytesIO() assert unpacker.skip() is None assert f.getvalue() == b'' @@ -21,9 +21,9 @@ def test_write_bytes(): def test_write_bytes_multi_buffer(): long_val = (5) * 100 expected = packb(long_val) - unpacker = Unpacker(six.BytesIO(expected), read_size=3, max_buffer_size=3) + unpacker = Unpacker(io.BytesIO(expected), read_size=3, max_buffer_size=3) - f = six.BytesIO() + f = io.BytesIO() unpacked = unpacker.unpack(f.write) assert unpacked == long_val assert f.getvalue() == expected |