summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py
index bd50bec0..32e94a7f 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -21,6 +21,7 @@ except ImportError:
wraps = lambda f: (lambda w: w)
from sphinx import application
+from sphinx.theming import Theme
from sphinx.ext.autodoc import AutoDirective
from path import path
@@ -170,6 +171,7 @@ class TestApp(application.Sphinx):
freshenv, warningiserror, tags)
def cleanup(self, doctrees=False):
+ Theme.themes.clear()
AutoDirective._registry.clear()
for tree in self.cleanup_trees:
shutil.rmtree(tree, True)