Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug in task logging in tests. (#5404)
Our context.log method accepts structured messages (e.g., to provide extra info in tooltips in an HTML report). Our regular console reporter flattens these out. However our TestContext class used a regular python logger, and this misinterpreted our structured messages as format args, leading to string formatting errors that obscured actual test errors. This change provides a thin wrapper around the regular logger that flattens out the structured messages, without bringing in our heavy reporting machinery. It also removes a test helper function that was unused and horribly broken.
- Loading branch information
Showing
1 changed file
with
23 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters