aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2022-03-09 19:00:02 +0100
committerChristian Tismer <tismer@stackless.com>2022-03-13 12:00:28 +0000
commitf376c39c904b1d619f8b340443baaa4546bdeca1 (patch)
tree9429e631d89c6b95bdddc16f97a4c33bedf5e2ff /testing
parentf1d5a54e825d068d9b199e67ac92a62602c4f507 (diff)
testing: Allow for repetition of blacklist sections
The testing framework was written with the rule that sections may not repeated - only the last entry would persist. When adding a whole row of PyPy entries, it turned out to be a drawback. It is nicer if sections can be repeated without interaction. [ChangeLog][shiboken6] In blacklist.txt now sections can be repeated. They will be combined as one section. Task-number: PYSIDE-535 Change-Id: I5e2ac435c7508b542306b470eca50411ee01606b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'testing')
-rw-r--r--testing/blacklist.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/blacklist.py b/testing/blacklist.py
index b85dcaba9..432eb86ab 100644
--- a/testing/blacklist.py
+++ b/testing/blacklist.py
@@ -77,7 +77,6 @@ class BlackList(object):
# nothing supplied
return
- self.index = {}
for idx, line in enumerate(lines):
fline = filtered_line(line)
if not fline:
@@ -92,8 +91,8 @@ class BlackList(object):
if is_test(fline):
# a new name
name = decorate(fline[0][1:-1])
- self.tests[name] = []
- self.index[name] = idx
+ # Allow for repeated sections
+ self.tests.setdefault(name, [])
elif fline:
# a known name with a new entry
self.tests[name].append(fline)