summaryrefslogtreecommitdiff
path: root/tests/test_concurrency.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-10 08:01:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-10 08:01:25 -0400
commitb97aaf2bc2703ac55a3fc1e048729bea8434c18c (patch)
tree64ef7e083576334fbf099a35460f54b9c3acf4a5 /tests/test_concurrency.py
parentb5ddfd9ad9978211006588934bc25e93d2ba8023 (diff)
downloadpython-coveragepy-git-b97aaf2bc2703ac55a3fc1e048729bea8434c18c.tar.gz
style: prefer explicit string concatenation
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r--tests/test_concurrency.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
index 0b8d6a8b..696b12eb 100644
--- a/tests/test_concurrency.py
+++ b/tests/test_concurrency.py
@@ -187,15 +187,13 @@ def cant_trace_msg(concurrency, the_module):
# We don't even have the underlying module installed, we expect
# coverage to alert us to this fact.
expected_out = (
- "Couldn't trace with concurrency=%s, "
- "the module isn't installed.\n" % concurrency
+ f"Couldn't trace with concurrency={concurrency}, the module isn't installed.\n"
)
elif env.C_TRACER or concurrency == "thread" or concurrency == "":
expected_out = None
else:
expected_out = (
- "Can't support concurrency=%s with PyTracer, "
- "only threads are supported\n" % concurrency
+ f"Can't support concurrency={concurrency} with PyTracer, only threads are supported\n"
)
return expected_out