8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7effb4a commit 518f886Copy full SHA for 518f886
test/test_buffer.py
@@ -8,7 +8,7 @@
8
def test_unpack_buffer():
9
from array import array
10
buf = array('b')
11
- buf.fromstring(packb(('foo', 'bar')))
+ buf.fromstring(packb((b'foo', b'bar')))
12
obj = unpackb(buf, use_list=1)
13
assert [b'foo', b'bar'] == obj
14
@@ -17,7 +17,5 @@ def test_unpack_bytearray():
17
buf = bytearray(packb(('foo', 'bar')))
18
19
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
+ expected_type = bytes
+ assert all(type(s) == expected_type for s in obj)
0 commit comments