From d8a2e217581f90eba20b66f0fb1a1844b0fa7629 Mon Sep 17 00:00:00 2001 From: Tim Martin Date: Tue, 12 Apr 2011 23:54:14 +0100 Subject: [PATCH] The test runner script now checks for the docutils and jinja libraries, without which all tests fail --- tests/run.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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()