If I write a simple test (which will fail) to check the UTF-8 lines (see the example below) and run it with py.test, the error output will be encoded in ascii using \x .
test
#-*- coding: utf-8 -*- def test(): assert "" == "1"
output:
def test(): > assert "" == "1" E assert '\xd1\x82\xd0...1\x81\xd1\x82' == '\xd1\x82\xd0\...\x81\xd1\x821' E - E + 1 E ? + test.py:3: AssertionError
Question: is there a way to make the output normal (with py.test)? I mean without \x , like a E assert '' == '1' .
source share