summaryrefslogtreecommitdiff
path: root/tests/test_domain_cpp.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_domain_cpp.py
parentc4fc6113382969d41caa2e78cccfba2a5c7507a0 (diff)
downloadsphinx-git-e1da72b59c6ac5136f45709a0aa73dd5a296b2ff.tar.gz
Reduce DeprecationWarnings for regexp
Diffstat (limited to 'tests/test_domain_cpp.py')
-rw-r--r--tests/test_domain_cpp.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_domain_cpp.py b/tests/test_domain_cpp.py
index 00ffd484e..4ff8a11f0 100644
--- a/tests/test_domain_cpp.py
+++ b/tests/test_domain_cpp.py
@@ -520,12 +520,12 @@ def test_build_domain_cpp_with_add_function_parentheses_is_True(app, status, war
('', 'MyEnum')
]
parenPatterns = [
- ('ref function without parens ', 'paren_1\(\)'),
- ('ref function with parens ', 'paren_2\(\)'),
+ ('ref function without parens ', r'paren_1\(\)'),
+ ('ref function with parens ', r'paren_2\(\)'),
('ref function without parens, explicit title ', 'paren_3_title'),
('ref function with parens, explicit title ', 'paren_4_title'),
- ('ref op call without parens ', 'paren_5::operator\(\)\(\)'),
- ('ref op call with parens ', 'paren_6::operator\(\)\(\)'),
+ ('ref op call without parens ', r'paren_5::operator\(\)\(\)'),
+ ('ref op call with parens ', r'paren_6::operator\(\)\(\)'),
('ref op call without parens, explicit title ', 'paren_7_title'),
('ref op call with parens, explicit title ', 'paren_8_title')
]
@@ -566,8 +566,8 @@ def test_build_domain_cpp_with_add_function_parentheses_is_False(app, status, wa
('ref function with parens ', 'paren_2'),
('ref function without parens, explicit title ', 'paren_3_title'),
('ref function with parens, explicit title ', 'paren_4_title'),
- ('ref op call without parens ', 'paren_5::operator\(\)'),
- ('ref op call with parens ', 'paren_6::operator\(\)'),
+ ('ref op call without parens ', r'paren_5::operator\(\)'),
+ ('ref op call with parens ', r'paren_6::operator\(\)'),
('ref op call without parens, explicit title ', 'paren_7_title'),
('ref op call with parens, explicit title ', 'paren_8_title')
]