summaryrefslogtreecommitdiff
path: root/tests/test_util_rst.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-02-13 02:02:51 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-02-17 02:01:04 +0900
commite1da72b59c6ac5136f45709a0aa73dd5a296b2ff (patch)
tree71727a65c1fb7275a9477e06929c6f6638f64545 /tests/test_util_rst.py
parentc4fc6113382969d41caa2e78cccfba2a5c7507a0 (diff)
downloadsphinx-git-e1da72b59c6ac5136f45709a0aa73dd5a296b2ff.tar.gz
Reduce DeprecationWarnings for regexp
Diffstat (limited to 'tests/test_util_rst.py')
-rw-r--r--tests/test_util_rst.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_util_rst.py b/tests/test_util_rst.py
index 72cd87fe8..b4ce955f4 100644
--- a/tests/test_util_rst.py
+++ b/tests/test_util_rst.py
@@ -12,5 +12,5 @@ from sphinx.util.rst import escape
def test_escape():
- assert escape(':ref:`id`') == '\:ref\:\`id\`'
- assert escape('footnote [#]_') == 'footnote \[\#\]\_'
+ assert escape(':ref:`id`') == r'\:ref\:\`id\`'
+ assert escape('footnote [#]_') == r'footnote \[\#\]\_'