diff options
Diffstat (limited to 'tests/test_ext_intersphinx.py')
-rw-r--r-- | tests/test_ext_intersphinx.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_ext_intersphinx.py b/tests/test_ext_intersphinx.py index decc985fe..13b5d1aff 100644 --- a/tests/test_ext_intersphinx.py +++ b/tests/test_ext_intersphinx.py @@ -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) @@ -170,13 +170,14 @@ def test_load_mappings_warnings(tempdir, app, status, warning): 'py3k': ('https://docs.python.org/py3k/', inv_file), 'repoze.workflow': ('http://docs.repoze.org/workflow/', inv_file), 'django-taggit': ('http://django-taggit.readthedocs.org/en/latest/', - inv_file) + inv_file), + 12345: ('http://www.sphinx-doc.org/en/stable/', inv_file), } app.config.intersphinx_cache_limit = 0 # load the inventory and check if it's done correctly load_mappings(app) - assert warning.getvalue().count('\n') == 2 + assert warning.getvalue().count('\n') == 1 class TestStripBasicAuth(unittest.TestCase): |