diff --git a/src/tests/core.py b/src/tests/core.py index a021fbe1..fcfdc4aa 100644 --- a/src/tests/core.py +++ b/src/tests/core.py @@ -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: