summaryrefslogtreecommitdiff
path: root/tests/test_directive_code.py
diff options
context:
space:
mode:
authortk0miya <i.tkomiya@gmail.com>2014-09-19 11:08:07 +0900
committertk0miya <i.tkomiya@gmail.com>2014-09-19 11:08:07 +0900
commit447c8c1d377374e59f3a2a2549fa400de486f4f8 (patch)
treed7bfa7bb0650944ed007faec0be0a8c262c0b854 /tests/test_directive_code.py
parent007a15454fe790cf17ebe0934c03b03055b1375a (diff)
downloadsphinx-git-447c8c1d377374e59f3a2a2549fa400de486f4f8.tar.gz
Wrap float environment on writing literal_block to latex
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r--tests/test_directive_code.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py
index 4dbdff881..f2f64970b 100644
--- a/tests/test_directive_code.py
+++ b/tests/test_directive_code.py
@@ -93,8 +93,7 @@ def test_code_block_caption_html(app):
def test_code_block_caption_latex(app):
app.builder.build('index')
latex = (app.outdir / 'Python.tex').text()
- caption = ('{\\colorbox[rgb]{0.9,0.9,0.9}{\\makebox[\\textwidth][l]'
- '{\\small\\texttt{caption-test.rb}}}}')
+ caption = '\\caption{caption-test.rb}'
assert caption in latex
@@ -168,6 +167,5 @@ def test_literalinclude_caption_html(app):
def test_literalinclude_caption_latex(app):
app.builder.build('index')
latex = (app.outdir / 'Python.tex').text()
- caption = ('{\\colorbox[rgb]{0.9,0.9,0.9}{\\makebox[\\textwidth][l]'
- '{\\small\\texttt{caption-test.py}}}}')
+ caption = '\\caption{caption-test.py}'
assert caption in latex