Allow running pybitmessage -t without tests package
This commit is contained in:
parent
8be89e9a25
commit
84b5f2982c
|
@ -371,10 +371,14 @@ class Main(object):
|
|||
self.stop()
|
||||
elif not state.enableGUI:
|
||||
state.enableGUI = True
|
||||
# pylint: disable=relative-import
|
||||
from tests import core as test_core
|
||||
try:
|
||||
# pylint: disable=relative-import
|
||||
from tests import core as test_core
|
||||
except ImportError:
|
||||
self.stop()
|
||||
return
|
||||
|
||||
test_core_result = test_core.run()
|
||||
state.enableGUI = True
|
||||
self.stop()
|
||||
test_core.cleanup()
|
||||
sys.exit(
|
||||
|
|
Reference in New Issue
Block a user