diff --git a/tests/roots/test-footnotes/index.rst b/tests/roots/test-footnotes/index.rst index 226c868a9..d15a27b72 100644 --- a/tests/roots/test-footnotes/index.rst +++ b/tests/roots/test-footnotes/index.rst @@ -169,3 +169,9 @@ Footnote in term [#]_ def bar(x,y): return x+y + +The section with an object description +====================================== + +.. py:function:: dummy(N) + :noindex: diff --git a/tests/test_build_latex.py b/tests/test_build_latex.py index a67871f60..f268064c6 100644 --- a/tests/test_build_latex.py +++ b/tests/test_build_latex.py @@ -829,6 +829,7 @@ def test_latex_show_urls_is_inline(app, status, warning): assert '\\sphinxurl{https://github.com/sphinx-doc/sphinx}\n' in result assert ('\\sphinxhref{mailto:sphinx-dev@googlegroups.com}' '{sphinx\\sphinxhyphen{}dev@googlegroups.com}') in result + assert '\\begin{savenotes}\\begin{fulllineitems}' not in result @pytest.mark.sphinx( @@ -883,6 +884,7 @@ def test_latex_show_urls_is_footnote(app, status, warning): assert ('\\sphinxurl{https://github.com/sphinx-doc/sphinx}\n' in result) assert ('\\sphinxhref{mailto:sphinx-dev@googlegroups.com}' '{sphinx\\sphinxhyphen{}dev@googlegroups.com}\n') in result + assert '\\begin{savenotes}\\begin{fulllineitems}' in result @pytest.mark.sphinx( @@ -926,6 +928,7 @@ def test_latex_show_urls_is_no(app, status, warning): assert ('\\sphinxurl{https://github.com/sphinx-doc/sphinx}\n' in result) assert ('\\sphinxhref{mailto:sphinx-dev@googlegroups.com}' '{sphinx\\sphinxhyphen{}dev@googlegroups.com}\n') in result + assert '\\begin{savenotes}\\begin{fulllineitems}' not in result @pytest.mark.sphinx(