python tests: print exception if nose is unavailable
This commit is contained in:
parent
b65c19aa51
commit
3959f8d2bc
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ import sys
|
|||
|
||||
try:
|
||||
import nose
|
||||
except ImportError:
|
||||
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")
|
||||
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): %s\n" % e)
|
||||
sys.exit(1)
|
||||
|
||||
from python_tests.utilities import TodoPlugin
|
||||
|
|
Loading…
Reference in a new issue