summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
authorTim Martin <tim@asymptotic.co.uk>2011-04-12 23:54:14 +0100
committerTim Martin <tim@asymptotic.co.uk>2011-04-12 23:54:14 +0100
commitd8a2e217581f90eba20b66f0fb1a1844b0fa7629 (patch)
treef7100d490ae04389f5ccffafb29ddf33e54ef474 /tests/run.py
parent54290ed0e668e56c6b104a8a5f98224e33a59b2c (diff)
downloadsphinx-git-d8a2e217581f90eba20b66f0fb1a1844b0fa7629.tar.gz
The test runner script now checks for the docutils and jinja libraries, without which all tests fail
Diffstat (limited to 'tests/run.py')
-rwxr-xr-xtests/run.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run.py b/tests/run.py
index 40c4fbed8..efc657246 100755
--- a/tests/run.py
+++ b/tests/run.py
@@ -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()