Conditional imports from network in core tests
This commit is contained in:
parent
7f0dc9e921
commit
fcc5dc188e
|
@ -25,12 +25,15 @@ from helper_msgcoding import MsgEncode, MsgDecode
|
|||
from helper_sql import sqlQuery
|
||||
from network import asyncore_pollchoose as asyncore, knownnodes
|
||||
from network.bmproto import BMProto
|
||||
from network.connectionpool import BMConnectionPool
|
||||
from network.node import Node, Peer
|
||||
from network.tcp import Socks4aBMConnection, Socks5BMConnection, TCPConnection
|
||||
from queues import excQueue
|
||||
from version import softwareVersion
|
||||
|
||||
if state.enableNetwork:
|
||||
from network.connectionpool import BMConnectionPool
|
||||
from network.tcp import (
|
||||
Socks4aBMConnection, Socks5BMConnection, TCPConnection)
|
||||
|
||||
from common import cleanup
|
||||
|
||||
try:
|
||||
|
|
Reference in New Issue
Block a user