summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-01-02 00:01:14 +0000
committerGitHub <noreply@github.com>2023-01-02 00:01:14 +0000
commit4032070e8131f518bbb8a04e8d63c5af4df9b59d (patch)
tree47b14f58d5337448e8358029264ebcd6d1ae7351 /tests/test_intl.py
parentede68fa423107fbab74d07b307d7dcb03c00dfbd (diff)
downloadsphinx-git-4032070e8131f518bbb8a04e8d63c5af4df9b59d.tar.gz
Run pyupgrade (#11070)
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'),