8000 fix · imclab/msgpack-python@518f886 · GitHub
[go: up one dir, main page]

Skip to content

Commit 518f886

Browse files
committed
fix
1 parent 7effb4a commit 518f886

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/test_buffer.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def test_unpack_buffer():
99
from array import array
1010
buf = array('b')
11-
buf.fromstring(packb(('foo', 'bar')))
11+
buf.fromstring(packb((b'foo', b'bar')))
1212
obj = unpackb(buf, use_list=1)
1313
assert [b'foo', b'bar'] == obj
1414

@@ -17,7 +17,5 @@ def test_unpack_bytearray():
1717
buf = bytearray(packb(('foo', 'bar')))
1818
obj = unpackb(buf, use_list=1)
1919
assert [b'foo', b'bar'] == obj
20-
expected_type = bytes if sys.version_info[0] == 3 else str
21-
assert all(type(s)==expected_type for s in obj)
22-
23-
20+
expected_type = bytes
21+
assert all(type(s) == expected_type for s in obj)

0 commit comments

Comments
 (0)
0