mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #2518: intersphinx_mapping disallows non alphanumeric keys
This commit is contained in:
@@ -161,7 +161,7 @@ def test_missing_reference(tempdir, app, status, warning):
|
||||
def test_load_mappings_warnings(tempdir, app, status, warning):
|
||||
"""
|
||||
load_mappings issues a warning if new-style mapping
|
||||
identifiers are not alphanumeric
|
||||
identifiers are not string
|
||||
"""
|
||||
inv_file = tempdir / 'inventory'
|
||||
inv_file.write_bytes(inventory_v2)
|
||||
@@ -177,7 +177,7 @@ def test_load_mappings_warnings(tempdir, app, status, warning):
|
||||
app.config.intersphinx_cache_limit = 0
|
||||
# load the inventory and check if it's done correctly
|
||||
load_mappings(app)
|
||||
assert warning.getvalue().count('\n') == 3
|
||||
assert warning.getvalue().count('\n') == 1
|
||||
|
||||
|
||||
class TestStripBasicAuth(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user