From cafe4f0985f3712882d26ca45bddf8c49f6adca7 Mon Sep 17 00:00:00 2001 From: Charlie Lin Date: Sun, 20 Jul 2025 11:41:57 -0400 Subject: [PATCH] Lint --- test/test_buffer.py | 4 ++-- test/test_multithreading.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test_buffer.py b/test/test_buffer.py index 2c5a14c..ca09722 100644 --- a/test/test_buffer.py +++ b/test/test_buffer.py @@ -17,7 +17,7 @@ def test_unpack_bytearray(): obj = unpackb(buf, use_list=1) assert [b"foo", b"bar"] == obj expected_type = bytes - assert all(type(s) == expected_type for s in obj) + assert all(type(s) is expected_type for s in obj) def test_unpack_memoryview(): @@ -26,7 +26,7 @@ def test_unpack_memoryview(): obj = unpackb(view, use_list=1) assert [b"foo", b"bar"] == obj expected_type = bytes - assert all(type(s) == expected_type for s in obj) + assert all(type(s) is expected_type for s in obj) def test_packer_getbuffer(): diff --git a/test/test_multithreading.py b/test/test_multithreading.py index 911420e..6694fdc 100644 --- a/test/test_multithreading.py +++ b/test/test_multithreading.py @@ -1,7 +1,8 @@ #!/usr/bin/env python3 -from concurrent.futures import ThreadPoolExecutor -from msgpack import Packer import threading +from concurrent.futures import ThreadPoolExecutor + +from msgpack import Packer def run_threaded(