The test runner script now checks for the docutils and jinja libraries, without which all tests fail

This commit is contained in:
Tim Martin 2011-04-12 23:54:14 +01:00
parent 54290ed0e6
commit d8a2e21758

View File

@ -32,5 +32,17 @@ except ImportError:
print("The nose package is needed to run the Sphinx test suite.")
sys.exit(1)
try:
import docutils
except ImportError:
print("Sphinx requires the docutils package to be installed")
sys.exit(1)
try:
import jinja2
except ImportError:
print("Sphinx requires the jinja2 package to be installed")
sys.exit(1)
print("Running Sphinx test suite...")
nose.main()