diff options
author | Georg Brandl <georg@python.org> | 2014-09-21 17:17:02 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-21 17:17:02 +0200 |
commit | d47a7587f9813f2366e2077be051116291bf930e (patch) | |
tree | 08d92669490358b284d2edd9ba4d61b64c52042a /tests/test_setup_command.py | |
parent | c5dfd5c7328fe642d0ca2bb51be58253326af17f (diff) | |
download | sphinx-git-d47a7587f9813f2366e2077be051116291bf930e.tar.gz |
Complete test suite overhaul.
* rename a few test modules to make the names more consistent
* do not copy/use Sphinx from build/ (unnecessary without 2to3)
* use a temporary dir for *all* test projects, the source tree
will stay pristine that way (default is tests/build)
* speed up tests by ~3x by splitting up test projects and avoiding
rebuilds
Diffstat (limited to 'tests/test_setup_command.py')
-rw-r--r-- | tests/test_setup_command.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test_setup_command.py b/tests/test_setup_command.py index c165b2d33..708267213 100644 --- a/tests/test_setup_command.py +++ b/tests/test_setup_command.py @@ -16,11 +16,16 @@ from functools import wraps import tempfile import sphinx -from util import with_tempdir, test_roots, SkipTest +from util import rootdir, tempdir, SkipTest from path import path from textwrap import dedent -root = test_roots / 'test-setup' +root = tempdir / 'test-setup' + + +def setup_module(): + if not root.exists(): + (rootdir / 'roots' / 'test-setup').copytree(root) def with_setup_command(root, *args, **kwds): |