diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-13 02:02:51 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-17 02:01:04 +0900 |
commit | e1da72b59c6ac5136f45709a0aa73dd5a296b2ff (patch) | |
tree | 71727a65c1fb7275a9477e06929c6f6638f64545 /tests/test_directive_code.py | |
parent | c4fc6113382969d41caa2e78cccfba2a5c7507a0 (diff) | |
download | sphinx-git-e1da72b59c6ac5136f45709a0aa73dd5a296b2ff.tar.gz |
Reduce DeprecationWarnings for regexp
Diffstat (limited to 'tests/test_directive_code.py')
-rw-r--r-- | tests/test_directive_code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 4ebe937d8..5c1bacfa8 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -67,7 +67,7 @@ def test_code_block_caption_latex(app, status, warning): latex = (app.outdir / 'Python.tex').text(encoding='utf-8') caption = '\\sphinxSetupCaptionForVerbatim{caption \\sphinxstyleemphasis{test} rb}' label = '\\def\\sphinxLiteralBlockLabel{\\label{\\detokenize{caption:id1}}}' - link = '\hyperref[\\detokenize{caption:name-test-rb}]' \ + link = '\\hyperref[\\detokenize{caption:name-test-rb}]' \ '{Listing \\ref{\\detokenize{caption:name-test-rb}}}' assert caption in latex assert label in latex @@ -263,7 +263,7 @@ def test_literalinclude_caption_latex(app, status, warning): latex = (app.outdir / 'Python.tex').text(encoding='utf-8') caption = '\\sphinxSetupCaptionForVerbatim{caption \\sphinxstylestrong{test} py}' label = '\\def\\sphinxLiteralBlockLabel{\\label{\\detokenize{caption:id2}}}' - link = '\hyperref[\\detokenize{caption:name-test-py}]' \ + link = '\\hyperref[\\detokenize{caption:name-test-py}]' \ '{Listing \\ref{\\detokenize{caption:name-test-py}}}' assert caption in latex assert label in latex |