Skip to content

Commit cafe4f0

Browse files
committed
Lint
1 parent 75cdd03 commit cafe4f0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/test_buffer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_unpack_bytearray():
1717
obj = unpackb(buf, use_list=1)
1818
assert [b"foo", b"bar"] == obj
1919
expected_type = bytes
20-
assert all(type(s) == expected_type for s in obj)
20+
assert all(type(s) is expected_type for s in obj)
2121

2222

2323
def test_unpack_memoryview():
@@ -26,7 +26,7 @@ def test_unpack_memoryview():
2626
obj = unpackb(view, use_list=1)
2727
assert [b"foo", b"bar"] == obj
2828
expected_type = bytes
29-
assert all(type(s) == expected_type for s in obj)
29+
assert all(type(s) is expected_type for s in obj)
3030

3131

3232
def test_packer_getbuffer():

test/test_multithreading.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env python3
2+
import threading
23
from concurrent.futures import ThreadPoolExecutor
4+
35
from msgpack import Packer
4-
import threading
56

67

78
def run_threaded(

0 commit comments

Comments
 (0)