summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
authorJonathan Waltman <jonathan.waltman@gmail.com>2013-01-05 20:14:48 -0600
committerJonathan Waltman <jonathan.waltman@gmail.com>2013-01-05 20:14:48 -0600
commit268b0090171642f86a287ff8cc190945e5617b35 (patch)
treedd426d9137035b81e04c31b13d1dceabf410cf44 /tests/util.py
parent57289afc4e21dcf17f55c90e5c263ff579ae3515 (diff)
downloadsphinx-git-268b0090171642f86a287ff8cc190945e5617b35.tar.gz
Move "only" directive tests to a seperate test root.
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py
index 817f218f0..3e17d3626 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -30,7 +30,7 @@ from nose import tools, SkipTest
__all__ = [
- 'test_root', 'raises', 'raises_msg',
+ 'test_root', 'test_roots', 'raises', 'raises_msg',
'skip_if', 'skip_unless', 'skip_unless_importable', 'Struct',
'ListOutput', 'TestApp', 'with_app', 'gen_with_app',
'path', 'with_tempdir', 'write_file',
@@ -39,6 +39,7 @@ __all__ = [
test_root = path(__file__).parent.joinpath('root').abspath()
+test_roots = path(__file__).parent.joinpath('roots').abspath()
def _excstr(exc):
@@ -153,6 +154,8 @@ class TestApp(application.Sphinx):
self.cleanup_trees.insert(0, outdir)
if doctreedir is None:
doctreedir = srcdir.joinpath(srcdir, self.builddir, 'doctrees')
+ if not doctreedir.isdir():
+ doctreedir.makedirs()
if cleanenv:
self.cleanup_trees.insert(0, doctreedir)
if confoverrides is None: