From 600d932a7085e163660f323f400e8fbae141d221 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:39:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/netcore/protocols/test_messagepack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/netcore/protocols/test_messagepack.py b/tests/netcore/protocols/test_messagepack.py index d2464f4..2408102 100644 --- a/tests/netcore/protocols/test_messagepack.py +++ b/tests/netcore/protocols/test_messagepack.py @@ -27,15 +27,15 @@ def test_messagepack_protocol_write(): def test_get_size(): p = MessagePackProtocol() - assert p._get_size(b"\x01", 0) == (1, 2 ** 0) - assert p._get_size(b"\x81\x01", 0) == (2, 2 ** 7 + 2 ** 0) + assert p._get_size(b"\x01", 0) == (1, 2**0) + assert p._get_size(b"\x81\x01", 0) == (2, 2**7 + 2**0) with pytest.raises(InvalidMessage): p._get_size(b"\x80", 0) def test_get_big_message_size(): p = MessagePackProtocol() - assert p._get_size(b"\x80" * 4 + b"\x03", 0) == (5, 3 * 2 ** 28) + assert p._get_size(b"\x80" * 4 + b"\x03", 0) == (5, 3 * 2**28) with pytest.raises(InvalidMessage): p._get_size(b"\x80" * 4 + b"\x04", 0) # 2 ** 30 bytes = 2GB