Skip to content

Commit 061ba99

Browse files
committed
[#90444] Log skip reason
1 parent 67388dd commit 061ba99

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

protoplaster/conf/csv_generator.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ def get_test_message(self, report):
3535
report.longrepr.reprcrash, "message"):
3636
msg = report.longrepr.reprcrash.message
3737
return msg.split("\nassert")[0]
38-
else:
39-
return ""
38+
elif report.skipped and isinstance(report.longrepr, tuple):
39+
return report.longrepr[2]
40+
return ""
4041

4142
@pytest.mark.hookwrapper
4243
def pytest_runtest_makereport(self, item, call):

0 commit comments

Comments
 (0)