summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2018-12-16 13:37:47 -0800
committerjfbu <jfbu@free.fr>2018-12-17 11:11:41 +0100
commite9c87b3d13c192a9b6a82d9ce0c6572f85e85743 (patch)
treed893aae9fcf15379d7349dd7a35d5c7ecbc54582
parentbf3bc32184e152f5f4f795d556e35c3f8112671e (diff)
downloadsphinx-git-e9c87b3d13c192a9b6a82d9ce0c6572f85e85743.tar.gz
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'
-rw-r--r--tests/test_directive_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_directive_code.py b/tests/test_directive_code.py
index ba8a60e1d..3592ebe0a 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