From 9d892d90c2f5a8a9d50c8cb6c3143f9e3b657ec3 Mon Sep 17 00:00:00 2001 From: _Frky <3105926+Frky@users.noreply.github.com> Date: Wed, 16 Feb 2022 12:13:19 +0100 Subject: [PATCH] Run latest version of Black --- test/src/tests/stun.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/src/tests/stun.py b/test/src/tests/stun.py index 373e7f0..4062ec9 100644 --- a/test/src/tests/stun.py +++ b/test/src/tests/stun.py @@ -127,9 +127,9 @@ def test_ipv4_udp_stun_change_port(): assert UDP in resp, "no UDP layer found" udp = resp[UDP] assert ( - udp.sport == (dport + 1) % 2 ** 16 + udp.sport == (dport + 1) % 2**16 ), "expected answer from UDP/{}, got it from UDP/{}".format( - (dport + 1) % 2 ** 16, udp.sport + (dport + 1) % 2**16, udp.sport ) assert ( udp.dport == sport @@ -170,9 +170,9 @@ def test_ipv6_udp_stun_change_port(): assert UDP in resp, "expecting UDP layer in answer, got nothing" udp = resp[UDP] assert ( - udp.sport == (dport + 1) % 2 ** 16 + udp.sport == (dport + 1) % 2**16 ), "expected answer from UDP/{}, got it from UDP/{}".format( - (dport + 1) % 2 ** 16, udp.sport + (dport + 1) % 2**16, udp.sport ) assert ( udp.dport == sport