Merge #7635: [Documentation] Add dependency info to test docs

2ab835a Check if zmq is installed in tests, update docs (Elliot Olds)
This commit is contained in:
Wladimir J. van der Laan 2016-03-11 08:42:45 +01:00 committed by Alexander Block
parent 51c6ab20f3
commit f1e95e3584

View File

@ -41,6 +41,15 @@ if 'ENABLE_UTILS' not in vars():
if 'ENABLE_ZMQ' not in vars(): if 'ENABLE_ZMQ' not in vars():
ENABLE_ZMQ=0 ENABLE_ZMQ=0
# python-zmq may not be installed. Handle this gracefully and with some helpful info
if ENABLE_ZMQ:
try:
import zmq
except ImportError:
print("WARNING: \"import zmq\" failed. Setting ENABLE_ZMQ=0. " \
"To run zmq tests, see dependency info in /qa/README.md.")
ENABLE_ZMQ=0
ENABLE_COVERAGE=0 ENABLE_COVERAGE=0
#Create a set to store arguments and create the passOn string #Create a set to store arguments and create the passOn string