Run latest version of Black

This commit is contained in:
_Frky 2022-02-16 12:13:19 +01:00
parent c6118e1448
commit 9d892d90c2

View file

@ -127,9 +127,9 @@ def test_ipv4_udp_stun_change_port():
assert UDP in resp, "no UDP layer found" assert UDP in resp, "no UDP layer found"
udp = resp[UDP] udp = resp[UDP]
assert ( assert (
udp.sport == (dport + 1) % 2 ** 16 udp.sport == (dport + 1) % 2**16
), "expected answer from UDP/{}, got it from UDP/{}".format( ), "expected answer from UDP/{}, got it from UDP/{}".format(
(dport + 1) % 2 ** 16, udp.sport (dport + 1) % 2**16, udp.sport
) )
assert ( assert (
udp.dport == sport 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" assert UDP in resp, "expecting UDP layer in answer, got nothing"
udp = resp[UDP] udp = resp[UDP]
assert ( assert (
udp.sport == (dport + 1) % 2 ** 16 udp.sport == (dport + 1) % 2**16
), "expected answer from UDP/{}, got it from UDP/{}".format( ), "expected answer from UDP/{}, got it from UDP/{}".format(
(dport + 1) % 2 ** 16, udp.sport (dport + 1) % 2**16, udp.sport
) )
assert ( assert (
udp.dport == sport udp.dport == sport