summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 07dfe8be3..3b04b293c 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -705,12 +705,12 @@ def test_html_index_entries(app):
def wrap(tag, keyword):
start_tag = "<%s[^>]*>" % tag
end_tag = "</%s>" % tag
- return r"%s\s*%s\s*%s" % (start_tag, keyword, end_tag)
+ return fr"{start_tag}\s*{keyword}\s*{end_tag}"
def wrap_nest(parenttag, childtag, keyword):
start_tag1 = "<%s[^>]*>" % parenttag
start_tag2 = "<%s[^>]*>" % childtag
- return r"%s\s*%s\s*%s" % (start_tag1, keyword, start_tag2)
+ return fr"{start_tag1}\s*{keyword}\s*{start_tag2}"
expected_exprs = [
wrap('a', 'NEWSLETTER'),
wrap('a', 'MAILING LIST'),