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_arcs.py | |
parent | 79f9f4575321fafc2ef770e3255f874db3d4b037 (diff) | |
download | python-coveragepy-git-1b94835aac3268a32bfa4ce0df585dbb97457a06.tar.gz |
style: convert more string formatting to f-strings
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r-- | tests/test_arcs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py index 349a560f..817943e9 100644 --- a/tests/test_arcs.py +++ b/tests/test_arcs.py @@ -1835,7 +1835,7 @@ class AsyncTest(CoverageTest): import asyncio async def compute(x, y): # 3 - print("Compute %s + %s ..." % (x, y)) + print(f"Compute {x} + {y} ...") await asyncio.sleep(0.001) return x + y # 6 @@ -1843,7 +1843,7 @@ class AsyncTest(CoverageTest): result = (0 + await compute(x, y) # A ) - print("%s + %s = %s" % (x, y, result)) + print(f"{x} + {y} = {result}") loop = asyncio.new_event_loop() # E loop.run_until_complete(print_sum(1, 2)) |