This commit is contained in:
Charlie Lin 2025-07-20 11:41:57 -04:00
parent 75cdd03f28
commit cafe4f0985
2 changed files with 5 additions and 4 deletions

View file

@ -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():

View file

@ -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(