summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 17c7ba44..5d3b5322 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -988,7 +988,7 @@ class DynamicContextPluginTest(CoverageTest):
"""Make some files to use while testing dynamic context plugins."""
self.make_file("rendering.py", """\
def html_tag(tag, content):
- return '<%s>%s</%s>' % (tag, content, tag)
+ return f'<{tag}>{content}</{tag}>'
def render_paragraph(text):
return html_tag('p', text)