summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-11-11 07:23:36 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-11-11 07:23:36 -0500
commit1b94835aac3268a32bfa4ce0df585dbb97457a06 (patch)
treeadbc0aa1467460588e77aa6d574e1ae9abb74f0f /tests/test_parser.py
parent79f9f4575321fafc2ef770e3255f874db3d4b037 (diff)
downloadpython-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz
style: convert more string formatting to f-strings
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 538e2500..6dcfc00a 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -463,7 +463,7 @@ class ParserFileTest(CoverageTest):
fname = fname + ".py"
self.make_file(fname, text, newline=newline)
parser = self.parse_file(fname)
- assert parser.exit_counts() == counts, "Wrong for %r" % fname
+ assert parser.exit_counts() == counts, f"Wrong for {fname!r}"
def test_encoding(self):
self.make_file("encoded.py", """\