Skip to content

Commit fafe5f0

Browse files
author
MarcoFalke
committed
test: Remove unused imports
1 parent fa16a09 commit fafe5f0

28 files changed

+79
-41
lines changed

test/functional/feature_bip68_sequence.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
from test_framework.messages import COIN, COutPoint, CTransaction, CTxIn, CTxOut, FromHex, ToHex
1111
from test_framework.script import CScript
1212
from test_framework.test_framework import BitcoinTestFramework
13-
from test_framework.util import assert_equal, assert_greater_than, assert_raises_rpc_error, get_bip9_status, satoshi_round, sync_blocks
13+
from test_framework.util import (
14+
assert_equal,
15+
assert_greater_than,
16+
assert_raises_rpc_error,
17+
get_bip9_status,
18+
satoshi_round,
19+
)
1420

1521
SEQUENCE_LOCKTIME_DISABLE_FLAG = (1<<31)
1622
SEQUENCE_LOCKTIME_TYPE_FLAG = (1<<22) # this means use time (0 means height)

test/functional/feature_fee_estimation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2014-2018 The Bitcoin Core developers
2+
# Copyright (c) 2014-2019 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test fee estimation code."""
@@ -15,8 +15,6 @@
1515
assert_greater_than_or_equal,
1616
connect_nodes,
1717
satoshi_round,
18-
sync_blocks,
19-
sync_mempools,
2018
)
2119

2220
# Construct 2 trivial P2SH's and the ScriptSigs that spend them

test/functional/feature_pruning.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@
1414
from test_framework.messages import CBlock, ToHex
1515
from test_framework.script import CScript, OP_RETURN, OP_NOP
1616
from test_framework.test_framework import BitcoinTestFramework
17-
from test_framework.util import assert_equal, assert_greater_than, assert_raises_rpc_error, connect_nodes, disconnect_nodes, sync_blocks, wait_until
17+
from test_framework.util import (
18+
assert_equal,
19+
assert_greater_than,
20+
assert_raises_rpc_error,
21+
connect_nodes,
22+
disconnect_nodes,
23+
wait_until,
24+
)
1825

1926
MIN_BLOCKS_TO_KEEP = 288
2027

test/functional/feature_segwit.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@
1818
from test_framework.messages import COIN, COutPoint, CTransaction, CTxIn, CTxOut, FromHex, sha256, ToHex
1919
from test_framework.script import CScript, OP_HASH160, OP_CHECKSIG, OP_0, hash160, OP_EQUAL, OP_DUP, OP_EQUALVERIFY, OP_1, OP_2, OP_CHECKMULTISIG, OP_TRUE, OP_DROP
2020
from test_framework.test_framework import BitcoinTestFramework
21-
from test_framework.util import assert_equal, assert_raises_rpc_error, connect_nodes, hex_str_to_bytes, sync_blocks, try_rpc
21+
from test_framework.util import (
22+
assert_equal,
23+
assert_raises_rpc_error,
24+
connect_nodes,
25+
hex_str_to_bytes,
26+
try_rpc,
27+
)
2228

2329
NODE_0 = 0
2430
NODE_2 = 2

test/functional/mempool_packages.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
from test_framework.messages import COIN
1010
from test_framework.test_framework import BitcoinTestFramework
11-
from test_framework.util import assert_equal, assert_raises_rpc_error, satoshi_round, sync_blocks, sync_mempools
11+
from test_framework.util import (
12+
assert_equal,
13+
assert_raises_rpc_error,
14+
satoshi_round,
15+
)
1216

1317
MAX_ANCESTORS = 25
1418
MAX_DESCENDANTS = 25

test/functional/p2p_feefilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from test_framework.messages import msg_feefilter
1111
from test_framework.mininode import mininode_lock, P2PInterface
1212
from test_framework.test_framework import BitcoinTestFramework
13-
from test_framework.util import sync_blocks, sync_mempools
13+
1414

1515
def hashToHex(hash):
1616
return format(hash, '064x')

test/functional/p2p_node_network_limited.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2017-2018 The Bitcoin Core developers
2+
# Copyright (c) 2017-2019 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Tests NODE_NETWORK_LIMITED.
@@ -11,7 +11,13 @@
1111
from test_framework.messages import CInv, msg_getdata, msg_verack, NODE_BLOOM, NODE_NETWORK_LIMITED, NODE_WITNESS
1212
from test_framework.mininode import P2PInterface, mininode_lock
1313
from test_framework.test_framework import BitcoinTestFramework
14-
from test_framework.util import assert_equal, disconnect_nodes, connect_nodes_bi, sync_blocks, wait_until
14+
from test_framework.util import (
15+
assert_equal,
16+
disconnect_nodes,
17+
connect_nodes_bi,
18+
wait_until,
19+
)
20+
1521

1622
class P2PIgnoreInv(P2PInterface):
1723
firstAddrnServices = 0

test/functional/p2p_segwit.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@
7777
disconnect_nodes,
7878
get_bip9_status,
7979
hex_str_to_bytes,
80-
sync_blocks,
81-
sync_mempools,
8280
)
8381

8482
# The versionbit bit used to signal activation of SegWit

test/functional/p2p_sendheaders.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2014-2018 The Bitcoin Core developers
2+
# Copyright (c) 2014-2019 The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test behavior of headers messages to announce blocks.
@@ -103,7 +103,6 @@
103103
from test_framework.test_framework import BitcoinTestFramework
104104
from test_framework.util import (
105105
assert_equal,
106-
sync_blocks,
107106
wait_until,
108107
)
109108

test/functional/p2p_unrequested_blocks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@
5757
from test_framework.messages import CBlockHeader, CInv, msg_block, msg_headers, msg_inv
5858
from test_framework.mininode import mininode_lock, P2PInterface
5959
from test_framework.test_framework import BitcoinTestFramework
60-
from test_framework.util import assert_equal, assert_raises_rpc_error, connect_nodes, sync_blocks
60+
from test_framework.util import (
61+
assert_equal,
62+
assert_raises_rpc_error,
63+
connect_nodes,
64+
)
6165

6266

6367
class AcceptBlockTest(BitcoinTestFramework):

0 commit comments

Comments
 (0)