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_concurrency.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r-- | tests/test_concurrency.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index c39b0163..6db75e69 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -215,7 +215,7 @@ class ConcurrencyTest(CoverageTest): self.make_file("try_it.py", code) - cmd = "coverage run --concurrency=%s try_it.py" % concurrency + cmd = f"coverage run --concurrency={concurrency} try_it.py" out = self.run_command(cmd) expected_cant_trace = cant_trace_msg(concurrency, the_module) @@ -366,11 +366,11 @@ class MultiprocessingTest(CoverageTest): ): """Run code using multiprocessing, it should produce `expected_out`.""" self.make_file("multi.py", code) - self.make_file(".coveragerc", """\ + self.make_file(".coveragerc", f"""\ [run] - concurrency = %s + concurrency = {concurrency} source = . - """ % concurrency) + """) for start_method in ["fork", "spawn"]: if start_method and start_method not in multiprocessing.get_all_start_methods(): |