Skip to content

Commit dae2eb5

Browse files
Nikita VoronchevNikita Voronchev
authored andcommitted
Use report.longreprtext to log exception insted of str(report.longrepr). Following https://docs.pytest.org/en/latest/writing_plugins.html, the report.longrepr is still checked to find an exceptions.
1 parent 9cf8c26 commit dae2eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_reportportal/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def pytest_runtest_makereport(self, item, call):
2323
report = (yield).get_result()
2424

2525
if report.longrepr:
26-
PyTestService.post_log(cgi.escape(str(report.longrepr)), logging.ERROR)
26+
PyTestService.post_log(cgi.escape(report.longreprtext), logging.ERROR)
2727

2828
if report.when == "setup":
2929

0 commit comments

Comments
 (0)