From b64a987664277877793d4001c2565e74132b1b02 Mon Sep 17 00:00:00 2001 From: cecille Date: Fri, 16 Aug 2024 10:34:11 -0400 Subject: [PATCH] Fix lint --- src/python_testing/matter_testing_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_testing/matter_testing_support.py b/src/python_testing/matter_testing_support.py index 093850d11d450b..eb8a6ba20d63b9 100644 --- a/src/python_testing/matter_testing_support.py +++ b/src/python_testing/matter_testing_support.py @@ -1148,7 +1148,7 @@ def extract_error_text() -> tuple[str, str]: if isinstance(exception, signals.TestError): # Exception gets raised by the mobly framework, so the proximal error is one line back in the stack trace - assert_candidates = [idx for idx, line in enumerate(trace) if "asserts" in line and not "asserts.py" in line] + assert_candidates = [idx for idx, line in enumerate(trace) if "asserts" in line and "asserts.py" not in line] if not assert_candidates: return "Unknown error, please see stack trace above", "" assert_candidate_idx = assert_candidates[-1]