mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix: ziptheme.zip block removing test temporary directory on Windows.
This commit is contained in:
@@ -21,6 +21,7 @@ except ImportError:
|
|||||||
wraps = lambda f: (lambda w: w)
|
wraps = lambda f: (lambda w: w)
|
||||||
|
|
||||||
from sphinx import application
|
from sphinx import application
|
||||||
|
from sphinx.theming import Theme
|
||||||
from sphinx.ext.autodoc import AutoDirective
|
from sphinx.ext.autodoc import AutoDirective
|
||||||
|
|
||||||
from path import path
|
from path import path
|
||||||
@@ -170,6 +171,7 @@ class TestApp(application.Sphinx):
|
|||||||
freshenv, warningiserror, tags)
|
freshenv, warningiserror, tags)
|
||||||
|
|
||||||
def cleanup(self, doctrees=False):
|
def cleanup(self, doctrees=False):
|
||||||
|
Theme.themes.clear()
|
||||||
AutoDirective._registry.clear()
|
AutoDirective._registry.clear()
|
||||||
for tree in self.cleanup_trees:
|
for tree in self.cleanup_trees:
|
||||||
shutil.rmtree(tree, True)
|
shutil.rmtree(tree, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user