python tests: print exception if nose is unavailable

This commit is contained in:
Dane Springmeyer 2013-04-05 22:51:53 -07:00
parent b65c19aa51
commit 3959f8d2bc

View file

@ -4,8 +4,8 @@ import sys
try: try:
import nose import nose
except ImportError: except ImportError, e:
sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose\n") sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose): %s\n" % e)
sys.exit(1) sys.exit(1)
from python_tests.utilities import TodoPlugin from python_tests.utilities import TodoPlugin