Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cecille committed Aug 16, 2024
1 parent a90a290 commit b64a987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_testing/matter_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b64a987

Please sign in to comment.