summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-17 23:55:05 +0100
committerGeorg Brandl <georg@python.org>2009-02-17 23:55:05 +0100
commitb42e9303f466bd39873ebbe32b26c472bc52bde4 (patch)
tree60be84d161f6d3e9e6713cdf18b754005f86c9db /tests/util.py
parent53ed60d6dc0a6a9d11b15b2cfd2af2e59fb1810d (diff)
downloadsphinx-git-b42e9303f466bd39873ebbe32b26c472bc52bde4.tar.gz
Update the test_autodoc for the autodoc refactorings and fix a few remaining bugs.
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py
index dcaf74adf..5d0b4a980 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -20,6 +20,7 @@ except ImportError:
wraps = lambda f: (lambda w: w)
from sphinx import application
+from sphinx.ext.autodoc import AutoDirective
from path import path
@@ -141,6 +142,7 @@ class TestApp(application.Sphinx):
freshenv)
def cleanup(self, doctrees=False):
+ AutoDirective._registry.clear()
for tree in self.cleanup_trees:
shutil.rmtree(tree, True)