test: resort imports

This commit is contained in:
John Newbery 2020-08-17 10:45:44 +01:00
parent 85165d4332
commit 5e8df3312e
9 changed files with 25 additions and 29 deletions

View File

@ -18,9 +18,9 @@ from test_framework.blocktools import (create_block, create_coinbase)
from test_framework.messages import CInv, MSG_BLOCK
from test_framework.p2p import (
P2PInterface,
p2p_lock,
msg_block,
msg_getdata,
p2p_lock,
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (

View File

@ -12,7 +12,7 @@ import re
from test_framework.blocktools import create_block, create_coinbase
from test_framework.messages import msg_block
from test_framework.p2p import P2PInterface, p2p_lock
from test_framework.p2p import p2p_lock, P2PInterface
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import wait_until

View File

@ -39,8 +39,8 @@ from decimal import Decimal
import os
import time
from test_framework.test_framework import BitcoinTestFramework
from test_framework.p2p import P2PTxInvStore
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
assert_greater_than_or_equal,

View File

@ -12,9 +12,7 @@ from test_framework.messages import (
NODE_WITNESS,
msg_addr,
)
from test_framework.p2p import (
P2PInterface,
)
from test_framework.p2p import P2PInterface
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,

View File

@ -15,11 +15,11 @@ Therefore, this test is limited to the remaining protection criteria.
import time
from test_framework.test_framework import BitcoinTestFramework
from test_framework.p2p import P2PInterface, P2PDataStore
from test_framework.util import assert_equal, wait_until
from test_framework.blocktools import create_block, create_coinbase
from test_framework.messages import CTransaction, FromHex, msg_pong, msg_tx
from test_framework.p2p import P2PDataStore, P2PInterface
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, wait_until
class SlowP2PDataStore(P2PDataStore):

View File

@ -7,7 +7,7 @@
from decimal import Decimal
from test_framework.messages import MSG_TX, MSG_WTX, msg_feefilter
from test_framework.p2p import p2p_lock, P2PInterface
from test_framework.p2p import P2PInterface, p2p_lock
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal

View File

@ -22,16 +22,6 @@ from decimal import Decimal
import http.client
import subprocess
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
assert_greater_than,
assert_greater_than_or_equal,
assert_raises,
assert_raises_rpc_error,
assert_is_hex_string,
assert_is_hash_string,
)
from test_framework.blocktools import (
create_block,
create_coinbase,
@ -42,8 +32,16 @@ from test_framework.messages import (
FromHex,
msg_block,
)
from test_framework.p2p import (
P2PInterface,
from test_framework.p2p import P2PInterface
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
assert_greater_than,
assert_greater_than_or_equal,
assert_raises,
assert_raises_rpc_error,
assert_is_hex_string,
assert_is_hash_string,
)

View File

@ -9,6 +9,12 @@ Tests correspond to code in rpc/net.cpp.
from decimal import Decimal
from test_framework.p2p import P2PInterface
import test_framework.messages
from test_framework.messages import (
NODE_NETWORK,
NODE_WITNESS,
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
assert_equal,
@ -19,12 +25,6 @@ from test_framework.util import (
p2p_port,
wait_until,
)
from test_framework.p2p import P2PInterface
import test_framework.messages
from test_framework.messages import (
NODE_NETWORK,
NODE_WITNESS,
)
def assert_net_servicesnames(servicesflag, servicenames):

View File

@ -20,8 +20,8 @@ import time
from .authproxy import JSONRPCException
from . import coverage
from .test_node import TestNode
from .p2p import NetworkThread
from .test_node import TestNode
from .util import (
MAX_NODES,
PortSeed,