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()
|
self.stop()
|
||||||
elif not state.enableGUI:
|
elif not state.enableGUI:
|
||||||
state.enableGUI = True
|
state.enableGUI = True
|
||||||
|
try:
|
||||||
# pylint: disable=relative-import
|
# pylint: disable=relative-import
|
||||||
from tests import core as test_core
|
from tests import core as test_core
|
||||||
|
except ImportError:
|
||||||
|
self.stop()
|
||||||
|
return
|
||||||
|
|
||||||
test_core_result = test_core.run()
|
test_core_result = test_core.run()
|
||||||
state.enableGUI = True
|
|
||||||
self.stop()
|
self.stop()
|
||||||
test_core.cleanup()
|
test_core.cleanup()
|
||||||
sys.exit(
|
sys.exit(
|
||||||
|
|
Reference in New Issue
Block a user