diff options
author | INADA Naoki <inada-n@klab.com> | 2014-02-15 22:20:57 +0900 |
---|---|---|
committer | INADA Naoki <inada-n@klab.com> | 2014-02-15 22:20:57 +0900 |
commit | 63eab502dff62bf7adbc25c75e8bc5bffa6ee234 (patch) | |
tree | e67f2734af5c4251ee5c975c2f6116e7844f1e1d | |
parent | dee2d87d413eaf9cb38f11c72df10e82a73f452f (diff) | |
download | msgpack-python-63eab502dff62bf7adbc25c75e8bc5bffa6ee234.tar.gz |
Remove six.b()
-rw-r--r-- | test/test_seq.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_seq.py b/test/test_seq.py index af719b0..fed9ff4 100644 --- a/test/test_seq.py +++ b/test/test_seq.py @@ -1,16 +1,15 @@ #!/usr/bin/env python # coding: utf-8 -import six import io import msgpack -binarydata = [chr(i) for i in range(256)] -binarydata = six.b("".join(binarydata)) + +binarydata = bytes(bytearray(range(256))) def gen_binary_data(idx): - data = binarydata[:idx % 300] - return data + return binarydata[:idx % 300] + def test_exceeding_unpacker_read_size(): dumpf = io.BytesIO() |