Update web-platform-tests to revision 592e2ed83ecd717392d37047536250ba74f1bafa

This commit is contained in:
WPT Sync Bot 2018-03-28 21:12:37 -04:00
parent c8b0dc965d
commit 0a3e19aac8
65 changed files with 1906 additions and 106 deletions

View file

@ -102,7 +102,19 @@ class SubtestResultRecorder(object):
self.record(report.nodeid, "PASS")
def record_fail(self, report):
self.record(report.nodeid, "FAIL", stack=report.longrepr)
# pytest outputs the stacktrace followed by an error message prefixed
# with "E ", e.g.
#
# def test_example():
# > assert "fuu" in "foobar"
# > E AssertionError: assert 'fuu' in 'foobar'
message = ""
for line in report.longreprtext.splitlines():
if line.startswith("E "):
message = line[1:].strip()
break
self.record(report.nodeid, "FAIL", message=message, stack=report.longrepr)
def record_error(self, report):
# error in setup/teardown