diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-02-15 08:47:18 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-02-15 08:47:21 +0100 |
commit | 6b8e4977b8323b35856ea9f6892cda98c8a2ba58 (patch) | |
tree | 3b4f61880111a5330ecadd4d2b8d6cd5784b4f89 | |
parent | 1695d6661bf25d82694774011164ddbfbfb51fdd (diff) | |
parent | 460fa8e0d9c1d08b5b5bca3fa02ba2763337aaf1 (diff) |
Merge bitcoin/bitcoin#24342: test: remove `import socket` in test_ipv6_local
460fa8e0d9c1d08b5b5bca3fa02ba2763337aaf1 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 460fa8e0d9c1d08b5b5bca3fa02ba2763337aaf1
Tree-SHA512: 031c17a776dedaa21b3ec6458ca822304e76a5a3f4494406e6b7b04f08cc2abefcfe742c462b60c9b3e2fee3cd110a69ed5ad413357886dc7b823abc916ea40e
-rw-r--r-- | test/functional/test_framework/netutil.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/functional/test_framework/netutil.py b/test/functional/test_framework/netutil.py index 174dc44a2a..b64f66e69b 100644 --- a/test/functional/test_framework/netutil.py +++ b/test/functional/test_framework/netutil.py @@ -144,7 +144,6 @@ def test_ipv6_local(): ''' Check for (local) IPv6 support. ''' - import socket # By using SOCK_DGRAM this will not actually make a connection, but it will # fail if there is no route to IPv6 localhost. have_ipv6 = True |