diff options
author | Cristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2020-12-31 03:22:06 +0100 |
---|---|---|
committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2021-07-12 20:32:21 +0200 |
commit | 8c1b6d88c19633a7373c052a2af3f584ad2114f7 (patch) | |
tree | 1f357aad87277a3efc4f295fab133280ffb65192 /testing/parser.py | |
parent | fb1f90eea7054a97a25ab8a63b661b35a6ff3c6f (diff) |
testing: use f-strings
Pick-to: 6.1
Change-Id: I55a614b5cabe9b3dcc45de17e7a22c47ae0e643d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'testing/parser.py')
-rw-r--r-- | testing/parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/parser.py b/testing/parser.py index 16b3362c8..e22f94fda 100644 --- a/testing/parser.py +++ b/testing/parser.py @@ -145,9 +145,9 @@ def _parse_tests(test_log): if idx + 1 != item.idx: # The numbering is disrupted. Provoke an error in this line! passed = False - code += ", but lines are disrupted!" + code = f"{code}, but lines are disrupted!" result[idx] = item._replace(passed=False, - code=item.code + ", but lines are disrupted!", + code=f"{item.code}, but lines are disrupted!", fatal=True) break return result |