summaryrefslogtreecommitdiff
path: root/tests/test_setup_command.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-09-21 17:17:02 +0200
committerGeorg Brandl <georg@python.org>2014-09-21 17:17:02 +0200
commitd47a7587f9813f2366e2077be051116291bf930e (patch)
tree08d92669490358b284d2edd9ba4d61b64c52042a /tests/test_setup_command.py
parentc5dfd5c7328fe642d0ca2bb51be58253326af17f (diff)
downloadsphinx-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.py9
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):