Minor clarification

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine
2026-04-07 16:19:20 +02:00
parent 541289c9cb
commit 8e06778bc8
@@ -117,7 +117,10 @@ class TestCaseSet:
def __init__(self, description: TestCaseSetDescription) -> None:
"""Construct a set of test cases from a list of matches for each test suite.
"""
self.matchers = {key: list(value) for key, value in description.items()}
# Construct new mutable objects, to avoid mutating the parameter,
# which could be confusing.
self.matchers = {key: list(entries)
for key, entries in description.items()}
def extend(self, description: TestCaseSetDescription) -> None:
"""Add more matchers to this test case set."""