Fix #1607: Sphinx crashes on building latexpdf with "howto" class

This commit is contained in:
tk0miya
2014-11-24 12:13:17 +09:00
parent fa9fef3632
commit 0f1d8433e7
3 changed files with 72 additions and 1 deletions
+2
View File
@@ -18,6 +18,7 @@ from six import StringIO
from nose import tools, SkipTest
from sphinx import application
from sphinx.builders.latex import LaTeXBuilder
from sphinx.theming import Theme
from sphinx.ext.autodoc import AutoDirective
from sphinx.pycode import ModuleAnalyzer
@@ -203,6 +204,7 @@ class TestApp(application.Sphinx):
Theme.themes.clear()
AutoDirective._registry.clear()
ModuleAnalyzer.cache.clear()
LaTeXBuilder.usepackages = []
sys.path[:] = self._saved_path
sys.modules.pop('autodoc_fodder', None)