Skip to content

Commit 0b21993

Browse files
JiayangLaijiayang laiPierre-Sassoulas
authored
fix: use f-string instead of .format() in show_test_item (#14398)
Co-authored-by: jiayang lai <jyl@jiayangdeMacBook-Pro.local> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent 9979555 commit 0b21993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def show_test_item(item: Item) -> None:
158158
tw.write(item.nodeid)
159159
used_fixtures = sorted(getattr(item, "fixturenames", []))
160160
if used_fixtures:
161-
tw.write(" (fixtures used: {})".format(", ".join(used_fixtures)))
161+
tw.write(f" (fixtures used: {', '.join(used_fixtures)})")
162162
tw.flush()
163163

164164

0 commit comments

Comments
 (0)