##// END OF EJS Templates
Give good error message when starting tests if nose is missing.
Fernando Perez -
Show More
@@ -3,6 +3,22 b''
3 """IPython Test Suite Runner.
3 """IPython Test Suite Runner.
4 """
4 """
5
5
6 from IPython.testing import iptest
6 # The tests can't even run if nose isn't available, so might as well give the
7 # user a civilized error message in that case.
7
8
8 iptest.main()
9 try:
10 import nose
11 except ImportError:
12 error = """\
13 ERROR: The IPython test suite requires nose to run.
14
15 Please install nose on your system first and try again.
16 For information on installing nose, see:
17 http://somethingaboutorange.com/mrl/projects/nose
18
19 Exiting."""
20 import sys
21 print >> sys.stderr, error
22 else:
23 from IPython.testing import iptest
24 iptest.main()
General Comments 0
You need to be logged in to leave comments. Login now