summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-01-29 10:21:01 +0100
committerGeorg Brandl <georg@python.org>2012-01-29 10:21:01 +0100
commit7d264e1e22e7eb605bbbeaa2c14870439b77a824 (patch)
tree7f379ef99901d2819d1daed42971a08b0c6513be /tests
parent15466fb057aa8f479503e53f8fc5b3a3ebea7fbf (diff)
downloadsphinx-7d264e1e22e7eb605bbbeaa2c14870439b77a824.tar.gz
Closes #695: When the highlight language "python" is specified explicitly, do not try to parse the code to recognize non-Python snippets.
Thanks to Jonas Haag for the patch.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_build_html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index 4e25167f..14b9d377 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -258,7 +258,7 @@ if pygments:
r'def'),
(".//div[@class='inc-tab3 highlight-text']//pre",
r'-| |-'),
- (".//div[@class='inc-tab8 highlight-python']//pre",
+ (".//div[@class='inc-tab8 highlight-python']//pre/span",
r'-| |-'),
])
HTML_XPATH['subdir/includes.html'].extend([