summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-11 10:25:34 +0100
committerGeorg Brandl <georg@python.org>2014-01-11 10:25:34 +0100
commit76bf70da68ef5683e21e3bbf4a11a737b3774018 (patch)
tree2b98d9965b00683c366bc0c212d4705d0e4744df /tests
parentca341e779b3dc34de30ad953be466f2be9ddd9b3 (diff)
downloadsphinx-76bf70da68ef5683e21e3bbf4a11a737b3774018.tar.gz
* add a test for the parsed-literal directive
* adapt test to pygments output versus Sphinx-emulated nohighlighting output
Diffstat (limited to 'tests')
-rw-r--r--tests/root/markup.txt4
-rw-r--r--tests/test_build_html.py2
-rw-r--r--tests/test_markup.py2
3 files changed, 6 insertions, 2 deletions
diff --git a/tests/root/markup.txt b/tests/root/markup.txt
index 39a8ebc0..34e8fdb8 100644
--- a/tests/root/markup.txt
+++ b/tests/root/markup.txt
@@ -79,6 +79,10 @@ Body directives
b
+.. parsed-literal::
+
+ with some *markup* inside
+
.. _admonition-section:
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index bd8c0730..2f34e9e4 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -42,7 +42,7 @@ http://www.python.org/logo.png
reading included file u'.*?wrongenc.inc' seems to be wrong, try giving an \
:encoding: option\\n?
%(root)s/includes.txt:4: WARNING: download file not readable: .*?nonexisting.png
-%(root)s/markup.txt:142: WARNING: Malformed :option: u'Python c option', does \
+%(root)s/markup.txt:\\d+: WARNING: Malformed :option: u'Python c option', does \
not contain option marker - or -- or /
%(root)s/objects.txt:\\d*: WARNING: using old C markup; please migrate to \
new-style markup \(e.g. c:function instead of cfunction\), see \
diff --git a/tests/test_markup.py b/tests/test_markup.py
index 311222ba..f182830a 100644
--- a/tests/test_markup.py
+++ b/tests/test_markup.py
@@ -132,7 +132,7 @@ def test_latex_escaping():
# in verbatim code fragments
yield (verify, u'::\n\n @Γ\\∞${}', None,
u'\\begin{Verbatim}[commandchars=\\\\\\{\\}]\n'
- u'@\\(\\Gamma\\)\\PYGZbs{}\\(\\infty\\)\\$\\PYGZob{}\\PYGZcb{}\n'
+ u'@\\(\\Gamma\\)\\PYGZbs{}\\(\\infty\\)\\PYGZdl{}\\PYGZob{}\\PYGZcb{}\n'
u'\\end{Verbatim}')
# in URIs
yield (verify_re, u'`test <http://example.com/~me/>`_', None,