From 8e06778bc8b26915da862258f99e262a4d9781a1 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 7 Apr 2026 16:19:20 +0200 Subject: [PATCH] Minor clarification Signed-off-by: Gilles Peskine --- scripts/mbedtls_framework/outcome_analysis.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/mbedtls_framework/outcome_analysis.py b/scripts/mbedtls_framework/outcome_analysis.py index bd80b2ec5..fb0a79a9d 100644 --- a/scripts/mbedtls_framework/outcome_analysis.py +++ b/scripts/mbedtls_framework/outcome_analysis.py @@ -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."""