aboutsummaryrefslogtreecommitdiffstats
path: root/testing/parser.py
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-07-12 10:38:56 +0200
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-07-13 11:27:01 +0200
commit20cb15d4702d5215cd80f2a2b7fd6eaf9cdd82f2 (patch)
tree0b2123bf1e701c34c115f726fcf4db65ca9a13ea /testing/parser.py
parentb6ce81ed2ede0f8b661caf0809bfa0f5d5147a71 (diff)
testing: fix flake8 warnings
Change-Id: I58d0ff45607b585beb008499728998d46e4679bb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8ae7438a8e14d937a68199d8944fc684081be4c6) Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'testing/parser.py')
-rw-r--r--testing/parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/parser.py b/testing/parser.py
index e22f94fda..76f1f34b2 100644
--- a/testing/parser.py
+++ b/testing/parser.py
@@ -131,7 +131,7 @@ def _parse_tests(test_log):
for line in lines:
match = re.match(pat, line, re.VERBOSE)
if match:
- idx, n, sharp, mod_name, much_stuff, code1, code2, tim = tup = match.groups()
+ idx, n, sharp, mod_name, much_stuff, code1, code2, tim = match.groups()
# either code1 or code2 is None
code = code1 or code2
idx, n, sharp, code, tim = int(idx), int(n), int(sharp), code.lower(), float(tim)
@@ -144,7 +144,6 @@ def _parse_tests(test_log):
# Use "if idx + 1 != item.idx or idx == 42:"
if idx + 1 != item.idx:
# The numbering is disrupted. Provoke an error in this line!
- passed = False
code = f"{code}, but lines are disrupted!"
result[idx] = item._replace(passed=False,
code=f"{item.code}, but lines are disrupted!",