diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-11-11 07:23:36 -0500 |
commit | 1b94835aac3268a32bfa4ce0df585dbb97457a06 (patch) | |
tree | adbc0aa1467460588e77aa6d574e1ae9abb74f0f /tests/test_debug.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'tests/test_debug.py')
-rw-r--r-- | tests/test_debug.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_debug.py b/tests/test_debug.py index 1ea72e82..42f41706 100644 --- a/tests/test_debug.py +++ b/tests/test_debug.py @@ -171,8 +171,8 @@ class DebugTraceTest(CoverageTest): report_include report_omit """.split() for label in labels: - label_pat = r"^\s*%s: " % label - msg = "Incorrect lines for %r" % label + label_pat = fr"^\s*{label}: " + msg = f"Incorrect lines for {label!r}" assert 1 == len(re_lines(label_pat, out_lines)), msg def test_debug_sys(self): @@ -185,8 +185,8 @@ class DebugTraceTest(CoverageTest): pid cwd path environment command_line cover_match pylib_match """.split() for label in labels: - label_pat = r"^\s*%s: " % label - msg = "Incorrect lines for %r" % label + label_pat = fr"^\s*{label}: " + msg = f"Incorrect lines for {label!r}" assert 1 == len(re_lines(label_pat, out_lines)), msg def test_debug_sys_ctracer(self): |