summaryrefslogtreecommitdiff
path: root/tests/test_build_latex.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-02 00:58:46 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-02 00:58:46 +0900
commit91fceb4b5f673aca6b9810cd4ff62a482f162ecf (patch)
treebfff14554b54c89d5c4534df381a341429bf046f /tests/test_build_latex.py
parent54d5fcfaebc3364044761d30c0fed6bd4d3052c3 (diff)
parentfea3e639da732520239391fabe313b115e13eb94 (diff)
downloadsphinx-git-91fceb4b5f673aca6b9810cd4ff62a482f162ecf.tar.gz
Merge branch '2.0.2' into 2.0
Diffstat (limited to 'tests/test_build_latex.py')
-rw-r--r--tests/test_build_latex.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py
index 45e993501..13bb22e96 100644
--- a/tests/test_build_latex.py
+++ b/tests/test_build_latex.py
@@ -1399,6 +1399,12 @@ def test_latex_labels(app, status, warning):
assert result.count(r'\label{\detokenize{index:section1}}') == 1
+@pytest.mark.sphinx('latex', testroot='latex-figure-in-admonition')
+def test_latex_figure_in_admonition(app, status, warning):
+ app.builder.build_all()
+ result = (app.outdir / 'python.tex').text(encoding='utf8')
+ assert(r'\begin{figure}[H]' in result)
+
def test_default_latex_documents():
from sphinx.util import texescape
texescape.init()