Merge pull request #6663 from tk0miya/6652_wrong_latex_documents_on_testing

Fix #6652: Run tests with wrong latex_documents setting
This commit is contained in:
Takeshi KOMIYA
2019-10-12 23:26:36 +09:00
committed by GitHub

View File

@@ -98,7 +98,7 @@ def skip_if_stylefiles_notfound(testfunc):
@pytest.mark.sphinx('latex')
def test_build_latex_doc(app, status, warning, engine, docclass):
app.config.latex_engine = engine
app.config.latex_documents[0] = app.config.latex_documents[0][:4] + (docclass,)
app.config.latex_documents = [app.config.latex_documents[0][:4] + (docclass,)]
app.builder.init_context()
LaTeXTranslator.ignore_missing_images = True