Conditional imports from network in core tests

This commit is contained in:
Dmitri Bogomolov 2021-08-02 22:02:59 +03:00
parent 7f0dc9e921
commit fcc5dc188e
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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: