summaryrefslogtreecommitdiff
path: root/tests/test_markup.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-01-08 01:30:15 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-01-08 01:30:25 +0900
commit66228fb60facd99b5176a49a68dfe78b5c342a4f (patch)
treeb4a166aec36520c14845a64dc378b38c73943f4e /tests/test_markup.py
parent064c80336f389593c268cf949ac665cca1b84ca6 (diff)
downloadsphinx-git-66228fb60facd99b5176a49a68dfe78b5c342a4f.tar.gz
Fix #5906: LaTeX Builder is not initialized correctly on test_markup
Diffstat (limited to 'tests/test_markup.py')
-rw-r--r--tests/test_markup.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py
index 218dc0c83..1f8b5ff3c 100644
--- a/tests/test_markup.py
+++ b/tests/test_markup.py
@@ -90,8 +90,7 @@ def verify_re_latex(app, parse):
document = parse(rst)
app.builder = LaTeXBuilder(app)
app.builder.set_environment(app.env)
- app.builder.init_context()
- app.builder.init_babel()
+ app.builder.init()
latex_translator = ForgivingLaTeXTranslator(document, app.builder)
latex_translator.first_document = -1 # don't write \begin{document}
document.walkabout(latex_translator)