8000 [conftest] XFail does not respect SIGNAL_EXCEPTION · postgrespro/testgres@88bb6ae · GitHub
[go: up one dir, main page]

Skip to content

Commit 88bb6ae

Browse files
[conftest] XFail does not respect SIGNAL_EXCEPTION
1 parent 9bc0ba2 commit 88bb6ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,11 @@ def helper__makereport__call(
352352
reasonText = rep.wasxfail
353353
reasonMsgTempl = "XFAIL REASON: {0}"
354354

355-
logging.error(call.excinfo.value)
356-
item_error_msg_count += 1
355+
if type(call.excinfo.value) == SIGNAL_EXCEPTION: # noqa: E721
356+
pass
357+
else:
358+
logging.error(call.excinfo.value)
359+
item_error_msg_count += 1
357360

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

0 commit comments

Comments
 (0)
0