Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2020-11-02 12:50:00 +0100
committerChristian Tismer <tismer@stackless.com>2020-11-02 13:26:38 +0000
commit6e3e7b9ca0548430aaa5e2555d6e02c64625fa3f (patch)
treea821c90747c2376d1396a4bf58330f8b41ccbaad /testing/command.py
parent4544a943ca2df4e6f0ac24914f0c0f844dc6f748 (diff)
replace **locals by f-strings where possible
This change affects mostly only my own sources which were prepared for the migration to Python 3.6 . Task-number: PYSIDE-904 Change-Id: I0c2cd59f6f625f51f876099c33005ac70ca39db9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'testing/command.py')
-rw-r--r--testing/command.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/command.py b/testing/command.py
index d56d2509e..d6f814a34 100644
--- a/testing/command.py
+++ b/testing/command.py
@@ -130,7 +130,7 @@ def test_project(project, args, blacklist, runs):
res = item.rich_result
sharp = "#" + str(item.sharp)
mod_name = decorate(item.mod_name)
- print("RES {index}: Test {sharp:>4}: {res:<6} {mod_name}()".format(**locals()))
+ print(f"RES {index}: Test {sharp:>4}: {res:<6} {mod_name}()")
r[0] += 1 if res == "PASS" else 0
r[1] += 1 if res == "FAIL!" else 0
r[2] += 1 if res == "SKIPPED" else 0 # not yet supported
@@ -146,7 +146,7 @@ def test_project(project, args, blacklist, runs):
"{} passed, {} failed, {} skipped, {} blacklisted, {} bpassed."
.format(*r))
print()
- print("********* Finished testing of %s *********" % project)
+ print(f"********* Finished testing of {project} *********")
print()
ret.append(r)
if fatal:
@@ -202,7 +202,7 @@ def main():
try:
builds.set_buildno(args.buildno)
except IndexError:
- print("history out of range. Try '%s list'" % __file__)
+ print(f"history out of range. Try '{__file__} list'")
sys.exit(1)
if args.subparser_name == "getcwd":