test: Silence pyflakes unused import warning

rpc-tests.py trial-imports zmq to determine whether it is available.
This commit is contained in:
Jack Grigg 2020-12-02 01:01:50 +00:00
parent 21a7ec8bfb
commit 3a91bcfac5
1 changed files with 1 additions and 0 deletions

View File

@ -195,6 +195,7 @@ def main():
if enable_zmq:
try:
import zmq
zmq # Silences pyflakes
except ImportError:
print("ERROR: \"import zmq\" failed. Use -nozmq to run without the ZMQ tests."
"To run zmq tests, see dependency info in /qa/README.md.")