summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-03-21 14:03:25 +0000
committergeorg.brandl <devnull@localhost>2008-03-21 14:03:25 +0000
commitdc1f268c73ad811091d1ae33e47b5319415628d2 (patch)
treef24c0439627770cf2d21d39617c92307f0afc757
parent7f2bf6a84a0539d130fc92ad1e336a237612116f (diff)
downloadsphinx-0.1.61611.tar.gz
Actually use the doctest_path setting.0.1.61611
-rw-r--r--sphinx/ext/doctest.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/ext/doctest.py b/sphinx/ext/doctest.py
index 2083e3ba..b9435f38 100644
--- a/sphinx/ext/doctest.py
+++ b/sphinx/ext/doctest.py
@@ -180,6 +180,8 @@ Doctest summary
self.setup_failures, s(self.setup_failures)))
self.outfile.close()
+ sys.path[0:0] = self.config.doctest_path
+
def write_doc(self, docname, doctree):
groups = {}
add_to_all_groups = []
@@ -201,7 +203,7 @@ Doctest summary
code = TestCode(node.astext(),
type=node.get('testnodetype', 'doctest'),
lineno=node.line, options=node.get('options'))
- node_groups = node.get('groups', ['default'])
+ node_groups = node.get('groups', ['doctest_block'])
if '*' in node_groups:
add_to_all_groups.append(code)
continue
@@ -277,4 +279,3 @@ def setup(app):
# this config value adds to sys.path
app.add_config_value('doctest_path', [], False)
app.add_config_value('doctest_test_doctest_blocks', True, False)
-