github web-platform-tests/wpt merge_pr_48865

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
10 months ago

Tidy up WebDriver errors (mostly via __str__)

This avoids __str__ having a trailing new line (as this makes it odd
to include in a typically single-line error message), and remove
excess whitespace (all ASCII from the message, new lines from the
stacktrace).

Additionally, make the message match the stacktrace: set it to None
unless we have a non-empty string. Both are implementation defined,
and in both cases they are sometimes empty. This makes the
if self.message is not None work as intended within __str__.

Don't miss a new wpt release

NewReleases is sending notifications on new releases.