Skip to content

Commit c1fc261

Browse files
authored
Update utils.py
1 parent 8e7b2ae commit c1fc261

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

allure-pytest/src/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,7 @@ def get_outcome_status_details(outcome):
155155

156156
def get_status(exception):
157157
if exception:
158-
if isinstance(exception, AssertionError) or isinstance(exception, pytest.fail.Exception):
159-
return Status.FAILED
160-
elif isinstance(exception, pytest.skip.Exception):
161-
return Status.SKIPPED
162-
return Status.BROKEN
158+
return Status.FAILED
163159
else:
164160
return Status.PASSED
165161

0 commit comments

Comments
 (0)