From e1da72b59c6ac5136f45709a0aa73dd5a296b2ff Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 13 Feb 2017 02:02:51 +0900 Subject: Reduce DeprecationWarnings for regexp --- tests/test_directive_code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_directive_code.py') 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 -- cgit v1.2.1