Skip to content

Commit

Permalink
[hotfix] Fix merge error in matter_testing_support.py (#27293)
Browse files Browse the repository at this point in the history
- Silent stacktraces were red herrings because step printing got
  broken by a bad merge.

Issue #27287

Co-authored-by: [email protected] <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Nov 3, 2023
1 parent e2eea14 commit 3346607
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python_testing/matter_testing_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ async def send_single_cmd(
result = await dev_ctrl.SendCommand(nodeid=node_id, endpoint=endpoint, payload=cmd, timedRequestTimeoutMs=timedRequestTimeoutMs)
return result

def print_step(self, stepnum: int, title: str) -> None:
logging.info('***** Test Step %d : %s', stepnum, title)
def print_step(self, stepnum: typing.Union[int, str], title: str) -> None:
logging.info(f'***** Test Step {stepnum} : {title}')

def record_error(self, test_name: str, location: Union[AttributePathLocation, EventPathLocation, CommandPathLocation], problem: str, spec_location: str = ""):
self.problems.append(ProblemNotice(test_name, location, ProblemSeverity.ERROR, problem, spec_location))
Expand Down

0 comments on commit 3346607

Please sign in to comment.