diff options
| author | Georg Brandl <georg@python.org> | 2009-06-04 17:57:58 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-06-04 17:57:58 +0200 |
| commit | fb0791bdfc37ca9e8ebf5c4bfbbc394f48d921a4 (patch) | |
| tree | 5b9f9f5804820f8f2a7cfd8e9515baea8b0eee62 /tests/test_build.py | |
| parent | ebcf18d9c3727a36b9c183b9812e2760d3d3772b (diff) | |
| download | sphinx-git-fb0791bdfc37ca9e8ebf5c4bfbbc394f48d921a4.tar.gz | |
Added the ``prepend`` and ``append`` options to the
``literalinclude`` directive.
Diffstat (limited to 'tests/test_build.py')
| -rw-r--r-- | tests/test_build.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_build.py b/tests/test_build.py index 72c821d06..d81e496eb 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -43,7 +43,7 @@ ENV_WARNINGS = """\ http://www.python.org/logo.png %(root)s/includes.txt:: (WARNING/2) Encoding 'utf-8-sig' used for reading \ included file u'wrongenc.inc' seems to be wrong, try giving an :encoding: option -%(root)s/includes.txt:56: WARNING: download file not readable: nonexisting.png +%(root)s/includes.txt:60: WARNING: download file not readable: nonexisting.png """ HTML_WARNINGS = ENV_WARNINGS + """\ @@ -134,6 +134,8 @@ if pygments: r'^class Foo:\n pass\nclass Bar:\n$', ".//div[@class='inc-startend highlight-text']/div/pre": ur'^foo = u"Including Unicode characters: üöä"\n$', + ".//div[@class='inc-preappend highlight-text']/div/pre": + r'(?m)^START CODE$', }) HTML_XPATH['subdir/includes.html'].update({ ".//pre/span": 'line 1', |
