You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Сurrent behavior: occurs UnicodeEncodeError when failure message contains non-ascii symbols
The steps to reproduce and a minimal demo of the problem:
Create simple PyTest test:
def test_2():
assert False, 'Большая беда'
Then run it: pytest test_2.py --alluredir aresult
You will got an error:
...
INTERNALERROR> File "/home/bomber/.virtualenvs/autotesting/local/lib/python2.7/site-packages/allure_pytest/listener.py", line 134, in pytest_runtest_makereport
INTERNALERROR> status_details = StatusDetails(message=str(call.excinfo.exconly()), trace=str(report.longrepr))
INTERNALERROR> UnicodeEncodeError: 'ascii' codec can't encode characters in position 16-22: ordinal not in range(128)
Expected behavior: test must fails without INTERNALERROR, allure report must contain failure message with non-ascii symbols.
I'm submitting a bug report
Сurrent behavior: occurs UnicodeEncodeError when failure message contains non-ascii symbols
The steps to reproduce and a minimal demo of the problem:
Create simple PyTest test:
Then run it: pytest test_2.py --alluredir aresult
You will got an error:
Expected behavior: test must fails without INTERNALERROR, allure report must contain failure message with non-ascii symbols.
Environment:
The text was updated successfully, but these errors were encountered: