From d210da96f69b7fba198bfdd248a4c71abcabb660 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 16 Dec 2018 13:37:47 -0800 Subject: [PATCH] Fix invalid escape sequence in test_directive_code.py Fixes error when running tests: tests/test_directive_code.py:359 sphinx/tests/test_directive_code.py:359: DeprecationWarning: invalid escape sequence \s includes = '\\end{sphinxVerbatim}\n\sphinxresetverbatimhllines\n' --- tests/test_directive_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py index 34e3e525c..43d9ff99c 100644 --- a/tests/test_directive_code.py +++ b/tests/test_directive_code.py @@ -356,7 +356,7 @@ def test_code_block_emphasize_latex(app, status, warning): latex = (app.outdir / 'Python.tex').text(encoding='utf-8').replace('\r\n', '\n') includes = '\\fvset{hllines={, 5, 6, 13, 14, 15, 24, 25, 26, 27,}}%\n' assert includes in latex - includes = '\\end{sphinxVerbatim}\n\sphinxresetverbatimhllines\n' + includes = '\\end{sphinxVerbatim}\n\\sphinxresetverbatimhllines\n' assert includes in latex