Skip to content

Commit a9d9545

Browse files
RockBombersseliverstov
authored andcommitted
Support for non-ascii symbols in stacktrace and failure message (fixes #77 via #78)
1 parent 1bce704 commit a9d9545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allure-pytest/src/listener.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def pytest_runtest_makereport(self, item, call):
131131
elif hasattr(report, 'wasxfail'):
132132
status_details = StatusDetails(message=report.wasxfail)
133133
elif report.failed:
134-
status_details = StatusDetails(message=str(call.excinfo.exconly()), trace=str(report.longrepr))
134+
status_details = StatusDetails(message=call.excinfo.exconly(), trace=report.longreprtext)
135135

136136
if report.when == 'setup':
137137
if report.passed:

0 commit comments

Comments
 (0)