Skip to content

[conftest] Advanced processing of logging #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Prev Previous commit
Next Next commit
[conftest] XFail does not respect SIGNAL_EXCEPTION
  • Loading branch information
dmitry-lipetsk committed Apr 1, 2025
commit 88bb6ae1592f1209f64745d499f2643f10e591f0
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,11 @@ def helper__makereport__call(
reasonText = rep.wasxfail
reasonMsgTempl = "XFAIL REASON: {0}"

logging.error(call.excinfo.value)
item_error_msg_count += 1
if type(call.excinfo.value) == SIGNAL_EXCEPTION: # noqa: E721
pass
else:
logging.error(call.excinfo.value)
item_error_msg_count += 1

assert type(reasonText) == str # noqa: E721

Expand Down