mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
Fix behave statuses for behave>=1.2.7
(cherry picked from commit f81cfceeae1a6b241e7a2ac5804a43e6da09a29c) IJ-MR-174906 GitOrigin-RevId: 96dcd3b134ed056de466da515b7a0273dfdba8ae
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4aec33401e
commit
b001c8d9cc
@@ -92,9 +92,12 @@ class TeamcityFormatter(Formatter):
|
|||||||
def result(self, step):
|
def result(self, step):
|
||||||
assert isinstance(step, Step)
|
assert isinstance(step, Step)
|
||||||
step_name = _step_name(step)
|
step_name = _step_name(step)
|
||||||
if step.status == Status.failed:
|
fail_statuses = [Status.failed]
|
||||||
|
if hasattr(Status, "error"):
|
||||||
|
fail_statuses.append(Status.error)
|
||||||
|
if step.status in fail_statuses:
|
||||||
try:
|
try:
|
||||||
error = traceback.format_exc(step.exc_traceback)
|
error = "".join(traceback.format_exception(step.exception))
|
||||||
if error != step.error_message:
|
if error != step.error_message:
|
||||||
self._messages.testStdErr(step_name, error)
|
self._messages.testStdErr(step_name, error)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user