diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-20 17:06:56 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-01-20 19:43:43 +0900 |
commit | 896ab3a2f5abbc5868a9346084627361d6b56f8c (patch) | |
tree | d2e122c5eadec53cc9a5e12e78129633c5d9de99 /tests/test_build_html.py | |
parent | d3058f462de8abc514e662270d3df62b08f953f9 (diff) | |
download | sphinx-git-896ab3a2f5abbc5868a9346084627361d6b56f8c.tar.gz |
Fix #4434: pure numbers as link targets produce warning
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r-- | tests/test_build_html.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py index 6fc024d35..bf9cc7f14 100644 --- a/tests/test_build_html.py +++ b/tests/test_build_html.py @@ -270,6 +270,8 @@ def test_html_warnings(app, warning): # tests for ``any`` role (".//a[@href='#with']/span", 'headings'), (".//a[@href='objects.html#func_without_body']/code/span", 'objects'), + # tests for numeric labels + (".//a[@href='#id1'][@class='reference internal']/span", 'Testing various markup'), # tests for smartypants (".//li", u'Smart “quotes” in English ‘text’.'), (".//li", u'Smart — long and – short dashes.'), |