mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-04-14 06:50:20 +00:00
use ruff instead of black (#598)
This commit is contained in:
parent
e77672200b
commit
2eca765533
11 changed files with 40 additions and 73 deletions
|
|
@ -95,4 +95,4 @@ def test_multidim_memoryview():
|
|||
view = memoryview(b"\00" * 6)
|
||||
data = view.cast(view.format, (3, 2))
|
||||
packed = packb(data)
|
||||
assert packed == b'\xc4\x06\x00\x00\x00\x00\x00\x00'
|
||||
assert packed == b"\xc4\x06\x00\x00\x00\x00\x00\x00"
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ def testStrictUnicodeUnpack():
|
|||
|
||||
def testIgnoreErrorsPack():
|
||||
re = unpackb(
|
||||
packb("abc\uDC80\uDCFFdef", use_bin_type=True, unicode_errors="ignore"),
|
||||
packb("abc\udc80\udcffdef", use_bin_type=True, unicode_errors="ignore"),
|
||||
raw=False,
|
||||
use_list=1,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
"""Test Unpacker's read_array_header and read_map_header methods"""
|
||||
|
||||
from msgpack import packb, Unpacker, OutOfData
|
||||
|
||||
UnexpectedTypeException = ValueError
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue