Fix #2518: intersphinx_mapping disallows non alphanumeric keys

This commit is contained in:
Takeshi KOMIYA
2016-05-23 12:14:56 +09:00
parent 9546fdaf5e
commit 37882b9c77
3 changed files with 3 additions and 4 deletions

View File

@@ -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):