diff options
| author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-03-17 16:41:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-17 16:41:22 +0000 |
| commit | 2902c6c55be460aae10b08504ed2fde4f3795f64 (patch) | |
| tree | 253b7417e5d2fbb726c3a9c9aabb61e03324e90c /tests | |
| parent | 7a4ce71f6b464b0f1d8f3c5af535f026b0051f0b (diff) | |
| download | sphinx-git-2902c6c55be460aae10b08504ed2fde4f3795f64.tar.gz | |
Deprecate legacy ``intersphinx_mapping`` format (#11247)
This format was made obsolete in Sphinx 1.0, but never formally deprecated.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_ext_intersphinx.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_ext_intersphinx.py b/tests/test_ext_intersphinx.py index 060f9eca4..ac49584b1 100644 --- a/tests/test_ext_intersphinx.py +++ b/tests/test_ext_intersphinx.py @@ -390,7 +390,10 @@ def test_load_mappings_warnings(tempdir, app, status, warning): # load the inventory and check if it's done correctly normalize_intersphinx_mapping(app, app.config) load_mappings(app) - assert warning.getvalue().count('\n') == 1 + warnings = warning.getvalue().splitlines() + assert len(warnings) == 2 + assert "The pre-Sphinx 1.0 'intersphinx_mapping' format is " in warnings[0] + assert 'intersphinx identifier 12345 is not string. Ignored' in warnings[1] def test_load_mappings_fallback(tempdir, app, status, warning): |
