-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Milestone
Description
Describe the bug
Hello,
in Fedora, we want to update Pygments to 2.10, but we see some test failures in Sphinx.
How to Reproduce
[sphinx (4.x)]$ tox -e py39 -- tests/test_intl.py
py39 develop-inst-noop: .../sphinx
py39 installed: alabaster==0.7.12,attrs==21.2.0,Babel==2.9.1,certifi==2021.5.30,charset-normalizer==2.0.4,coverage==5.5,Cython==0.29.24,docutils==0.17.1,html5lib==1.1,idna==3.2,imagesize==1.2.0,iniconfig==1.1.1,Jinja2==3.0.1,MarkupSafe==2.0.1,packaging==21.0,pluggy==0.13.1,py==1.10.0,Pygments==2.10.0,pyparsing==2.4.7,pytest==6.2.4,pytest-cov==2.12.1,pytz==2021.1,requests==2.26.0,six==1.16.0,snowballstemmer==2.1.0,-e git://github.com/sphinx-doc/sphinx.git@8fd4373d3aec07b8d9a4fb159b6236f4dc715b21#egg=Sphinx,sphinxcontrib-applehelp==1.0.2,sphinxcontrib-devhelp==1.0.2,sphinxcontrib-htmlhelp==2.0.0,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.3,sphinxcontrib-serializinghtml==1.1.5,toml==0.10.2,urllib3==1.26.6,webencodings==0.5.1
py39 run-test-pre: PYTHONHASHSEED='1736228685'
py39 run-test: commands[0] | python -X dev -m pytest --durations 25 tests/test_intl.py
============================= test session starts ==============================
platform linux -- Python 3.9.6, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
cachedir: .tox/py39/.pytest_cache
libraries: Sphinx-4.2.0+/8fd4373d3, docutils-0.17.1
base tempdir: /tmp/pytest-of-churchyard/pytest-7
rootdir: .../sphinx, configfile: setup.cfg
plugins: cov-2.12.1
collected 49 items
tests/test_intl.py ...........................................FF.... [100%]
=================================== FAILURES ===================================
_______________ test_additional_targets_should_not_be_translated _______________
app = <sphinx.testing.util.SphinxTestAppWrapperForSkipBuilding object at 0x7f970d8b51e0>
@sphinx_intl
@pytest.mark.sphinx('html')
@pytest.mark.test_params(shared_result='test_intl_basic')
def test_additional_targets_should_not_be_translated(app):
app.build()
# [literalblock.txt]
result = (app.outdir / 'literalblock.html').read_text()
# title should be translated
expected_expr = 'CODE-BLOCKS'
assert_count(expected_expr, result, 2)
# ruby code block should not be translated but be highlighted
expected_expr = """<span class="s1">'result'</span>"""
assert_count(expected_expr, result, 1)
# C code block without lang should not be translated and *ruby* highlighted
expected_expr = """<span class="c1">#include <stdlib.h></span>"""
assert_count(expected_expr, result, 1)
# C code block with lang should not be translated but be *C* highlighted
expected_expr = ("""<span class="cp">#include</span> """
"""<span class="cpf"><stdio.h></span>""")
> assert_count(expected_expr, result, 1)
tests/test_intl.py:1065:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected_expr = '<span class="cp">#include</span> <span class="cpf"><stdio.h></span>'
result = '\n<!DOCTYPE html>\n\n<html lang="xx">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="wid...="_sources/literalblock.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'
count = 1
def assert_count(expected_expr, result, count):
find_pair = (expected_expr, result)
> assert len(re.findall(*find_pair)) == count, find_pair
E AssertionError: ('<span class="cp">#include</span> <span class="cpf"><stdio.h></span>', '
E <!DOCTYPE html>
E
E <html lang="xx">
E ..."_sources/literalblock.txt"
E rel="nofollow">Page source</a>
E </div>
E
E
E
E
E </body>
E </html>')
E assert 0 == 1
E + where 0 = len([])
E + where [] = <function findall at 0x7f9711cb9190>(*('<span class="cp">#include</span> <span class="cpf"><stdio.h></span>', '\n<!DOCTYPE html>\n\n<html lang="xx">\n..."_sources/literalblock.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'))
E + where <function findall at 0x7f9711cb9190> = re.findall
tests/test_intl.py:90: AssertionError
--------------------------- Captured stdout teardown ---------------------------
# language: xx
# locale_dirs: ['.']
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-churchyard/pytest-7/test_intl_basic
# outdir: /tmp/pytest-of-churchyard/pytest-7/test_intl_basic/_build/html
# status:
Running Sphinx v4.2.0+/8fd4373d3
loading translations [xx]... done
loading pickled environment... done
es that are out of date
writing output... [ 3%] xx/LC_MESSAGES/glossary_terms_inconsistency.mo
writing output... [ 7%] xx/LC_MESSAGES/seealso.mo
writing output... [ 11%] xx/LC_MESSAGES/label_target.mo
writing output... [ 14%] xx/LC_MESSAGES/warnings.mo
writing output... [ 18%] xx/LC_MESSAGES/section.mo
writing output... [ 22%] xx/LC_MESSAGES/rubric.mo
writing output... [ 25%] xx/LC_MESSAGES/only.mo
writing output... [ 29%] xx/LC_MESSAGES/table.mo
writing output... [ 33%] xx/LC_MESSAGES/versionchange.mo
writing output... [ 37%] xx/LC_MESSAGES/index_entries.mo
writing output... [ 40%] xx/LC_MESSAGES/topic.mo
writing output... [ 44%] xx/LC_MESSAGES/bom.mo
writing output... [ 48%] xx/LC_MESSAGES/docfields.mo
writing output... [ 51%] xx/LC_MESSAGES/glossary_terms.mo
writing output... [ 55%] xx/LC_MESSAGES/refs_inconsistency.mo
writing output... [ 59%] xx/LC_MESSAGES/toctree.mo
writing output... [ 62%] xx/LC_MESSAGES/literalblock.mo
writing output... [ 66%] xx/LC_MESSAGES/figure.mo
writing output... [ 70%] xx/LC_MESSAGES/refs_python_domain.mo
writing output... [ 74%] xx/LC_MESSAGES/refs.mo
writing output... [ 77%] xx/LC_MESSAGES/raw.mo
writing output... [ 81%] xx/LC_MESSAGES/admonitions.mo
writing output... [ 85%] xx/LC_MESSAGES/definition_terms.mo
writing output... [ 88%] xx/LC_MESSAGES/footnote.mo
writing output... [ 92%] xx/LC_MESSAGES/role_xref.mo
writing output... [ 96%] xx/LC_MESSAGES/external_links.mo
writing output... [100%] xx/LC_MESSAGES/index.mo
building [text]: targets for 28 source files that are out of date
updating environment: [new config] 28 added, 0 changed, 0 removed
reading sources... [ 3%] admonitions
reading sources... [ 7%] bom
reading sources... [ 10%] definition_terms
reading sources... [ 14%] docfields
reading sources... [ 17%] external_links
reading sources... [ 21%] figure
reading sources... [ 25%] footnote
reading sources... [ 28%] glossary_terms
reading sources... [ 32%] glossary_terms_inconsistency
reading sources... [ 35%] index
reading sources... [ 39%] index_entries
reading sources... [ 42%] label_target
reading sources... [ 46%] literalblock
reading sources... [ 50%] only
reading sources... [ 53%] raw
reading sources... [ 57%] refs
reading sources... [ 60%] refs_inconsistency
reading sources... [ 64%] refs_python_domain
reading sources... [ 67%] role_xref
reading sources... [ 71%] rubric
reading sources... [ 75%] section
reading sources... [ 78%] seealso
reading sources... [ 82%] subdir/index
reading sources... [ 85%] table
reading sources... [ 89%] toctree
reading sources... [ 92%] topic
reading sources... [ 96%] versionchange
reading sources... [100%] warnings
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 3%] admonitions
writing output... [ 7%] bom
writing output... [ 10%] definition_terms
writing output... [ 14%] docfields
writing output... [ 17%] external_links
writing output... [ 21%] figure
writing output... [ 25%] footnote
writing output... [ 28%] glossary_terms
writing output... [ 32%] glossary_terms_inconsistency
writing output... [ 35%] index
writing output... [ 39%] index_entries
writing output... [ 42%] label_target
writing output... [ 46%] literalblock
writing output... [ 50%] only
writing output... [ 53%] raw
writing output... [ 57%] refs
writing output... [ 60%] refs_inconsistency
writing output... [ 64%] refs_python_domain
writing output... [ 67%] role_xref
writing output... [ 71%] rubric
writing output... [ 75%] section
writing output... [ 78%] seealso
writing output... [ 82%] subdir/index
writing output... [ 85%] table
writing output... [ 89%] toctree
writing output... [ 92%] topic
writing output... [ 96%] versionchange
writing output... [100%] warnings
build succeeded, 21 warnings.
The text files are in ../../../../../tmp/pytest-of-churchyard/pytest-7/test_intl_basic/_build/text.
# warning:
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/admonitions.txt:: WARNING: rST localisation for language "xx" not found.
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/admonitions.txt:: WARNING: Language "xx" not supported: Docutils-generated text will be in English.
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/glossary_terms_inconsistency.txt:6: WARNING: inconsistent term references in translated message. original: [':term:`Some term`', ':term:`Some other term`'], translated: [':term:`SOME NEW TERM`']
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/label_target.txt:41: WARNING: Duplicate target name, cannot be used as a unique reference: "duplicated sub section".
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/literalblock.txt:13: WARNING: Literal block expected; none found.
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs.txt:16: WARNING: inconsistent references in translated message. original: ['`download Sphinx`_'], translated: ['`A3 DOWNLOAD SPHINX <download Sphinx_>`_', '`A3 DOWNLOAD SPHINX <download Sphinx_>`_']
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs.txt:32: WARNING: inconsistent references in translated message. original: ['`Translation Tips`_'], translated: ['`X TIPS <Translation Tips_>`_', '`X TIPS <Translation Tips_>`_']
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs.txt:34: WARNING: inconsistent references in translated message. original: ['`Translation Tips`_'], translated: ['`TRANS <X TIPS_>`_', '`LATION <X TIPS_>`_']
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_inconsistency.txt:6: WARNING: inconsistent footnote references in translated message. original: ['[#]_'], translated: []
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_inconsistency.txt:6: WARNING: inconsistent footnote references in translated message. original: ['[100]_'], translated: []
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_inconsistency.txt:7: WARNING: inconsistent references in translated message. original: ['reference_'], translated: ['reference_', 'reference_']
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_inconsistency.txt:8: WARNING: inconsistent references in translated message. original: [], translated: ['`I18N WITH REFS INCONSISTENCY`_']
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/warnings.txt:4:<translated>:1: WARNING: Inline literal start-string without end-string.
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/warnings.txt:4:<translated>:1: WARNING: Inline literal start-string without end-string.
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/admonitions.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/label_target.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_python_domain.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/rubric.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/toctree.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_inconsistency.txt:11: WARNING: Citation [ref2] is not referenced.
/tmp/pytest-of-churchyard/pytest-7/test_intl_basic/refs_inconsistency.txt:6: WARNING: citation not found: ref3
_________________ test_additional_targets_should_be_translated _________________
app = <SphinxTestApp buildername='html'>
@sphinx_intl
@pytest.mark.sphinx(
'html',
srcdir='test_additional_targets_should_be_translated',
confoverrides={
'language': 'xx', 'locale_dirs': ['.'],
'gettext_compact': False,
'gettext_additional_targets': [
'index',
'literal-block',
'doctest-block',
'raw',
'image',
],
}
)
def test_additional_targets_should_be_translated(app):
app.build()
# [literalblock.txt]
result = (app.outdir / 'literalblock.html').read_text()
# title should be translated
expected_expr = 'CODE-BLOCKS'
assert_count(expected_expr, result, 2)
# ruby code block should be translated and be highlighted
expected_expr = """<span class="s1">'RESULT'</span>"""
assert_count(expected_expr, result, 1)
# C code block without lang should be translated and *ruby* highlighted
expected_expr = """<span class="c1">#include <STDLIB.H></span>"""
assert_count(expected_expr, result, 1)
# C code block with lang should be translated and be *C* highlighted
expected_expr = ("""<span class="cp">#include</span> """
"""<span class="cpf"><STDIO.H></span>""")
> assert_count(expected_expr, result, 1)
tests/test_intl.py:1143:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
expected_expr = '<span class="cp">#include</span> <span class="cpf"><STDIO.H></span>'
result = '\n<!DOCTYPE html>\n\n<html lang="xx">\n <head>\n <meta charset="utf-8" />\n <meta name="viewport" content="wid...="_sources/literalblock.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'
count = 1
def assert_count(expected_expr, result, count):
find_pair = (expected_expr, result)
> assert len(re.findall(*find_pair)) == count, find_pair
E AssertionError: ('<span class="cp">#include</span> <span class="cpf"><STDIO.H></span>', '
E <!DOCTYPE html>
E
E <html lang="xx">
E ..."_sources/literalblock.txt"
E rel="nofollow">Page source</a>
E </div>
E
E
E
E
E </body>
E </html>')
E assert 0 == 1
E + where 0 = len([])
E + where [] = <function findall at 0x7f9711cb9190>(*('<span class="cp">#include</span> <span class="cpf"><STDIO.H></span>', '\n<!DOCTYPE html>\n\n<html lang="xx">\n..."_sources/literalblock.txt"\n rel="nofollow">Page source</a>\n </div>\n\n \n\n \n </body>\n</html>'))
E + where <function findall at 0x7f9711cb9190> = re.findall
tests/test_intl.py:90: AssertionError
--------------------------- Captured stdout teardown ---------------------------
# language: xx
# locale_dirs: ['.']
# testroot: root
# builder: html
# srcdir: /tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated
# outdir: /tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/_build/html
# status:
Running Sphinx v4.2.0+/8fd4373d3
loading translations [xx]... done
building [mo]: targets for 27 po files that are out of date
writing output... [ 3%] xx/LC_MESSAGES/figure.mo
writing output... [ 7%] xx/LC_MESSAGES/refs_python_domain.mo
writing output... [ 11%] xx/LC_MESSAGES/refs.mo
writing output... [ 14%] xx/LC_MESSAGES/raw.mo
writing output... [ 18%] xx/LC_MESSAGES/footnote.mo
writing output... [ 22%] xx/LC_MESSAGES/refs_inconsistency.mo
writing output... [ 25%] xx/LC_MESSAGES/external_links.mo
writing output... [ 29%] xx/LC_MESSAGES/index.mo
writing output... [ 33%] xx/LC_MESSAGES/role_xref.mo
writing output... [ 37%] xx/LC_MESSAGES/definition_terms.mo
writing output... [ 40%] xx/LC_MESSAGES/seealso.mo
writing output... [ 44%] xx/LC_MESSAGES/label_target.mo
writing output... [ 48%] xx/LC_MESSAGES/glossary_terms_inconsistency.mo
writing output... [ 51%] xx/LC_MESSAGES/warnings.mo
writing output... [ 55%] xx/LC_MESSAGES/section.mo
writing output... [ 59%] xx/LC_MESSAGES/bom.mo
writing output... [ 62%] xx/LC_MESSAGES/rubric.mo
writing output... [ 66%] xx/LC_MESSAGES/glossary_terms.mo
writing output... [ 70%] xx/LC_MESSAGES/docfields.mo
writing output... [ 74%] xx/LC_MESSAGES/only.mo
writing output... [ 77%] xx/LC_MESSAGES/topic.mo
writing output... [ 81%] xx/LC_MESSAGES/table.mo
writing output... [ 85%] xx/LC_MESSAGES/versionchange.mo
writing output... [ 88%] xx/LC_MESSAGES/admonitions.mo
writing output... [ 92%] xx/LC_MESSAGES/index_entries.mo
writing output... [ 96%] xx/LC_MESSAGES/toctree.mo
writing output... [100%] xx/LC_MESSAGES/literalblock.mo
building [html]: targets for 28 source files that are out of date
updating environment: [new config] 28 added, 0 changed, 0 removed
reading sources... [ 3%] admonitions
reading sources... [ 7%] bom
reading sources... [ 10%] definition_terms
reading sources... [ 14%] docfields
reading sources... [ 17%] external_links
reading sources... [ 21%] figure
reading sources... [ 25%] footnote
reading sources... [ 28%] glossary_terms
reading sources... [ 32%] glossary_terms_inconsistency
reading sources... [ 35%] index
reading sources... [ 39%] index_entries
reading sources... [ 42%] label_target
reading sources... [ 46%] literalblock
reading sources... [ 50%] only
reading sources... [ 53%] raw
reading sources... [ 57%] refs
reading sources... [ 60%] refs_inconsistency
reading sources... [ 64%] refs_python_domain
reading sources... [ 67%] role_xref
reading sources... [ 71%] rubric
reading sources... [ 75%] section
reading sources... [ 78%] seealso
reading sources... [ 82%] subdir/index
reading sources... [ 85%] table
reading sources... [ 89%] toctree
reading sources... [ 92%] topic
reading sources... [ 96%] versionchange
reading sources... [100%] warnings
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 3%] admonitions
writing output... [ 7%] bom
writing output... [ 10%] definition_terms
writing output... [ 14%] docfields
writing output... [ 17%] external_links
writing output... [ 21%] figure
writing output... [ 25%] footnote
writing output... [ 28%] glossary_terms
writing output... [ 32%] glossary_terms_inconsistency
writing output... [ 35%] index
writing output... [ 39%] index_entries
writing output... [ 42%] label_target
writing output... [ 46%] literalblock
writing output... [ 50%] only
writing output... [ 53%] raw
writing output... [ 57%] refs
writing output... [ 60%] refs_inconsistency
writing output... [ 64%] refs_python_domain
writing output... [ 67%] role_xref
writing output... [ 71%] rubric
writing output... [ 75%] section
writing output... [ 78%] seealso
writing output... [ 82%] subdir/index
writing output... [ 85%] table
writing output... [ 89%] toctree
writing output... [ 92%] topic
writing output... [ 96%] versionchange
writing output... [100%] warnings
generating indices... genindex done
writing additional pages... contents search done
copying images... [ 50%] img.png
copying images... [100%] i18n.png
copying static files... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 19 warnings.
The HTML pages are in ../../../../../tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/_build/html.
# warning:
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/glossary_terms_inconsistency.txt:6: WARNING: inconsistent term references in translated message. original: [':term:`Some term`', ':term:`Some other term`'], translated: [':term:`SOME NEW TERM`']
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/label_target.txt:41: WARNING: Duplicate target name, cannot be used as a unique reference: "duplicated sub section".
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/literalblock.txt:13: WARNING: Literal block expected; none found.
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs.txt:16: WARNING: inconsistent references in translated message. original: ['`download Sphinx`_'], translated: ['`A3 DOWNLOAD SPHINX <download Sphinx_>`_', '`A3 DOWNLOAD SPHINX <download Sphinx_>`_']
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs.txt:32: WARNING: inconsistent references in translated message. original: ['`Translation Tips`_'], translated: ['`X TIPS <Translation Tips_>`_', '`X TIPS <Translation Tips_>`_']
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs.txt:34: WARNING: inconsistent references in translated message. original: ['`Translation Tips`_'], translated: ['`TRANS <X TIPS_>`_', '`LATION <X TIPS_>`_']
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_inconsistency.txt:6: WARNING: inconsistent footnote references in translated message. original: ['[#]_'], translated: []
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_inconsistency.txt:6: WARNING: inconsistent footnote references in translated message. original: ['[100]_'], translated: []
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_inconsistency.txt:7: WARNING: inconsistent references in translated message. original: ['reference_'], translated: ['reference_', 'reference_']
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_inconsistency.txt:8: WARNING: inconsistent references in translated message. original: [], translated: ['`I18N WITH REFS INCONSISTENCY`_']
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/warnings.txt:4:<translated>:1: WARNING: Inline literal start-string without end-string.
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/warnings.txt:4:<translated>:1: WARNING: Inline literal start-string without end-string.
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/admonitions.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/label_target.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_python_domain.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/rubric.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/toctree.txt: WARNING: document isn't included in any toctree
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_inconsistency.txt:11: WARNING: Citation [ref2] is not referenced.
/tmp/pytest-of-churchyard/pytest-7/test_additional_targets_should_be_translated/refs_inconsistency.txt:6: WARNING: citation not found: ref3
============================= slowest 25 durations =============================
2.09s call tests/test_intl.py::test_additional_targets_should_be_translated
1.26s call tests/test_intl.py::test_html_meta
0.93s call tests/test_intl.py::test_text_emit_warnings
0.61s call tests/test_intl.py::test_gettext_section
0.34s call tests/test_intl.py::test_customize_system_message
0.28s setup tests/test_intl.py::test_text_emit_warnings
0.11s call tests/test_intl.py::test_xml_footnotes
0.09s call tests/test_intl.py::test_gettext_dont_rebuild_mo
0.09s setup tests/test_intl.py::test_text_seealso
0.08s setup tests/test_intl.py::test_html_index_entries
0.08s setup tests/test_intl.py::test_text_subdirs
0.06s setup tests/test_intl.py::test_additional_targets_should_be_translated
0.06s setup tests/test_intl.py::test_gettext_section
0.03s call tests/test_intl.py::test_text_references
0.03s setup tests/test_intl.py::test_text_glossary_term_inconsistencies
0.03s setup tests/test_intl.py::test_additional_targets_should_not_be_translated
0.03s setup tests/test_intl.py::test_xml_label_targets
0.03s setup tests/test_intl.py::test_html_footnotes
0.03s setup tests/test_intl.py::test_html_undefined_refs
0.03s setup tests/test_intl.py::test_html_docfields
0.03s setup tests/test_intl.py::test_customize_system_message
0.03s setup tests/test_intl.py::test_html_rebuild_mo
0.03s setup tests/test_intl.py::test_html_meta
0.03s setup tests/test_intl.py::test_html_versionchanges
0.03s setup tests/test_intl.py::test_text_rubric
=========================== short test summary info ============================
FAILED tests/test_intl.py::test_additional_targets_should_not_be_translated
FAILED tests/test_intl.py::test_additional_targets_should_be_translated - Ass...
========================= 2 failed, 47 passed in 7.50s =========================
ERROR: InvocationError for command .../sphinx/.tox/py39/bin/python -X dev -m pytest --durations 25 tests/test_intl.py (exited with code 1)
___________________________________ summary ____________________________________
ERROR: py39: commands failed
Expected behavior
The tests should pass.
Your project
sphinx
Screenshots
No response
OS
Fedora Linux 33-36
Python version
3.9.6, 3.10.0rc1
Sphinx version
4.x branch, also 4.1.2 release
Sphinx extensions
No response
Extra tools
Pygments 2.10
Additional context
No response