Skip to content

Commit 5e8df33

Browse files
committed
test: resort imports
1 parent 85165d4 commit 5e8df33

File tree

9 files changed

+25
-29
lines changed

9 files changed

+25
-29
lines changed

test/functional/example_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
from test_framework.messages import CInv, MSG_BLOCK
1919
from test_framework.p2p import (
2020
P2PInterface,
21-
p2p_lock,
2221
msg_block,
2322
msg_getdata,
23+
p2p_lock,
2424
)
2525
from test_framework.test_framework import BitcoinTestFramework
2626
from test_framework.util import (

test/functional/feature_versionbits_warning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
from test_framework.blocktools import create_block, create_coinbase
1414
from test_framework.messages import msg_block
15-
from test_framework.p2p import P2PInterface, p2p_lock
15+
from test_framework.p2p import p2p_lock, P2PInterface
1616
from test_framework.test_framework import BitcoinTestFramework
1717
from test_framework.util import wait_until
1818

test/functional/mempool_persist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
import os
4040
import time
4141

42-
from test_framework.test_framework import BitcoinTestFramework
4342
from test_framework.p2p import P2PTxInvStore
43+
from test_framework.test_framework import BitcoinTestFramework
4444
from test_framework.util import (
4545
assert_equal,
4646
assert_greater_than_or_equal,

test/functional/p2p_addr_relay.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
NODE_WITNESS,
1313
msg_addr,
1414
)
15-
from test_framework.p2p import (
16-
P2PInterface,
17-
)
15+
from test_framework.p2p import P2PInterface
1816
from test_framework.test_framework import BitcoinTestFramework
1917
from test_framework.util import (
2018
assert_equal,

test/functional/p2p_eviction.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
import time
1717

18-
from test_framework.test_framework import BitcoinTestFramework
19-
from test_framework.p2p import P2PInterface, P2PDataStore
20-
from test_framework.util import assert_equal, wait_until
2118
from test_framework.blocktools import create_block, create_coinbase
2219
from test_framework.messages import CTransaction, FromHex, msg_pong, msg_tx
20+
from test_framework.p2p import P2PDataStore, P2PInterface
21+
from test_framework.test_framework import BitcoinTestFramework
22+
from test_framework.util import assert_equal, wait_until
2323

2424

2525
class SlowP2PDataStore(P2PDataStore):

test/functional/p2p_feefilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from decimal import Decimal
88

99
from test_framework.messages import MSG_TX, MSG_WTX, msg_feefilter
10-
from test_framework.p2p import p2p_lock, P2PInterface
10+
from test_framework.p2p import P2PInterface, p2p_lock
1111
from test_framework.test_framework import BitcoinTestFramework
1212
from test_framework.util import assert_equal
1313

test/functional/rpc_blockchain.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@
2222
import http.client
2323
import subprocess
2424

25-
from test_framework.test_framework import BitcoinTestFramework
26-
from test_framework.util import (
27-
assert_equal,
28-
assert_greater_than,
29-
assert_greater_than_or_equal,
30-
assert_raises,
31-
assert_raises_rpc_error,
32-
assert_is_hex_string,
33-
assert_is_hash_string,
34-
)
3525
from test_framework.blocktools import (
3626
create_block,
3727
create_coinbase,
@@ -42,8 +32,16 @@
4232
FromHex,
4333
msg_block,
4434
)
45-
from test_framework.p2p import (
46-
P2PInterface,
35+
from test_framework.p2p import P2PInterface
36+
from test_framework.test_framework import BitcoinTestFramework
37+
from test_framework.util import (
38+
assert_equal,
39+
assert_greater_than,
40+
assert_greater_than_or_equal,
41+
assert_raises,
42+
assert_raises_rpc_error,
43+
assert_is_hex_string,
44+
assert_is_hash_string,
4745
)
4846

4947

test/functional/rpc_net.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99

1010
from decimal import Decimal
1111

12+
from test_framework.p2p import P2PInterface
13+
import test_framework.messages
14+
from test_framework.messages import (
15+
NODE_NETWORK,
16+
NODE_WITNESS,
17+
)
1218
from test_framework.test_framework import BitcoinTestFramework
1319
from test_framework.util import (
1420
assert_equal,
@@ -19,12 +25,6 @@
1925
p2p_port,
2026
wait_until,
2127
)
22-
from test_framework.p2p import P2PInterface
23-
import test_framework.messages
24-
from test_framework.messages import (
25-
NODE_NETWORK,
26-
NODE_WITNESS,
27-
)
2828

2929

3030
def assert_net_servicesnames(servicesflag, servicenames):

test/functional/test_framework/test_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
from .authproxy import JSONRPCException
2222
from . import coverage
23-
from .test_node import TestNode
2423
from .p2p import NetworkThread
24+
from .test_node import TestNode
2525
from .util import (
2626
MAX_NODES,
2727
PortSeed,

0 commit comments

Comments
 (0)