diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-02 00:58:46 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-02 00:58:46 +0900 |
commit | 91fceb4b5f673aca6b9810cd4ff62a482f162ecf (patch) | |
tree | bfff14554b54c89d5c4534df381a341429bf046f /tests/test_build_latex.py | |
parent | 54d5fcfaebc3364044761d30c0fed6bd4d3052c3 (diff) | |
parent | fea3e639da732520239391fabe313b115e13eb94 (diff) | |
download | sphinx-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.py | 6 |
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() |