diff options
author | Stephen Finucane <stephen@that.guru> | 2017-12-22 18:50:47 +0000 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-12-29 13:02:04 +0000 |
commit | 9348c4bea1bf75184bb4fe2af25c5990d6dcf2c1 (patch) | |
tree | 025c470e568e0a0bdf1fa93b81cd4bb91de788f8 | |
parent | 4fd217ce88c596093887895197ccf75a7e99368c (diff) | |
download | sphinx-git-9348c4bea1bf75184bb4fe2af25c5990d6dcf2c1.tar.gz |
tests: Stop explicitly checking for modules
This will have already been handled by setuptools. If the user isn't
using this then they've dug their own grave.
Signed-off-by: Stephen Finucane <stephen@that.guru>
-rwxr-xr-x | tests/run.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/run.py b/tests/run.py index 2116e345c..217f8bea2 100755 --- a/tests/run.py +++ b/tests/run.py @@ -27,19 +27,6 @@ warnings.filterwarnings('ignore', category=ImportWarning, module='pkgutil') warnings.filterwarnings('ignore', category=ImportWarning, module='pytest_cov') warnings.filterwarnings('ignore', category=PendingDeprecationWarning, module=r'_pytest\..*') -# check dependencies before testing -print('Checking dependencies...') -for modname in ('pytest', 'mock', 'six', 'docutils', 'jinja2', 'pygments', - 'snowballstemmer', 'babel', 'html5lib'): - try: - __import__(modname) - except ImportError as err: - if modname == 'mock' and sys.version_info[0] == 3: - continue - traceback.print_exc() - print('The %r package is needed to run the Sphinx test suite.' % modname) - sys.exit(1) - # find a temp dir for testing and clean it up now os.environ['SPHINX_TEST_TEMPDIR'] = \ os.path.abspath(os.path.join(testroot, 'build')) \ |