mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-14 09:22:11 -05:00
fix: ziptheme.zip block removing test temporary directory on Windows.
This commit is contained in:
1 parent
9d412304cd
commit
f9b1f7d2f2
1 file changed
+2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user