Skip to content

Commit 08abc19

Browse files
committed
Make linter happy
1 parent e827640 commit 08abc19

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

tests/integration/test_snowsignal.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ def _create_broadcast_test_packet(self, src) -> scapy.packet.Packet:
4343
/ scapy.packet.Raw(load=self._test_payload)
4444
)
4545

46-
packet2 = (
47-
scapy.layers.l2.Ether(dst="ff:ff:ff:ff:ff:ff")
48-
/ scapy.layers.inet.IP(dst="255.255.255.255")
49-
/ scapy.layers.inet.UDP(dport=5076)
50-
/ scapy.packet.Raw(b"a" * 200)
51-
)
52-
5346
return packet
5447

5548
async def test_main_runs(self):
@@ -187,7 +180,7 @@ async def test_fragments_rebroadcast(self, mock_datagram_received: unittest.mock
187180
# Send a fragmented UDP message. We ensure fragmentation by making the message payload long
188181
toolong_msg = b""
189182
for i in range(500):
190-
toolong_msg += f"test{i:03d}".encode("utf-8")
183+
toolong_msg += f"test{i:03d}".encode()
191184
self.send_udp_broadcast(toolong_msg)
192185

193186
# And some time for packets to fly around

0 commit comments

Comments
 (0)