Skip to content

Commit 6b8e497

Browse files
author
MarcoFalke
committed
Merge bitcoin#24342: test: remove import socket in test_ipv6_local
460fa8e test: remove `import socket` in test_ipv6_local (brunoerg) Pull request description: Since this module (`socket`) is imported at the top of file, there is no need to import it again within the function. ACKs for top commit: MarcoFalke: cr ACK 460fa8e Tree-SHA512: 031c17a776dedaa21b3ec6458ca822304e76a5a3f4494406e6b7b04f08cc2abefcfe742c462b60c9b3e2fee3cd110a69ed5ad413357886dc7b823abc916ea40e
2 parents 1695d66 + 460fa8e commit 6b8e497

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/functional/test_framework/netutil.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def test_ipv6_local():
144144
'''
145145
Check for (local) IPv6 support.
146146
'''
147-
import socket
148147
# By using SOCK_DGRAM this will not actually make a connection, but it will
149148
# fail if there is no route to IPv6 localhost.
150149
have_ipv6 = True

0 commit comments

Comments
 (0)