summaryrefslogtreecommitdiff
path: root/tests/test_domain_py.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2022-06-16 22:07:25 +0200
committerGitHub <noreply@github.com>2022-06-16 21:07:25 +0100
commit1a1491b8a70def8b37c07021b8586fc435103058 (patch)
tree907d45888c5b769f4dbb9a087fb7a1ee4065d655 /tests/test_domain_py.py
parentf789148fa293d3dfe702588e6d375e1bca411b1a (diff)
downloadsphinx-git-1a1491b8a70def8b37c07021b8586fc435103058.tar.gz
Show the repr of the value in some warnings (#10439)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Diffstat (limited to 'tests/test_domain_py.py')
-rw-r--r--tests/test_domain_py.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py
index baad0c2da..ce1636eb2 100644
--- a/tests/test_domain_py.py
+++ b/tests/test_domain_py.py
@@ -1369,6 +1369,6 @@ def test_python_python_use_unqualified_type_names_disabled(app, status, warning)
@pytest.mark.sphinx('dummy', testroot='domain-py-xref-warning')
def test_warn_missing_reference(app, status, warning):
app.build()
- assert 'index.rst:6: WARNING: undefined label: no-label' in warning.getvalue()
- assert ('index.rst:6: WARNING: Failed to create a cross reference. A title or caption not found: existing-label'
- in warning.getvalue())
+ assert "index.rst:6: WARNING: undefined label: 'no-label'" in warning.getvalue()
+ assert ("index.rst:6: WARNING: Failed to create a cross reference. "
+ "A title or caption not found: 'existing-label'") in warning.getvalue()