Use ascii_escaped to escape unicode warnings

This commit is contained in:
Bruno Oliveira
2017-10-03 11:09:24 -03:00
parent fbb9e9328b
commit df6d5cd4e7
4 changed files with 9 additions and 9 deletions

View File

@@ -163,7 +163,7 @@ def test_py2_unicode(testdir, pyfile_with_warnings):
result.stdout.fnmatch_lines([
'*== %s ==*' % WARNINGS_SUMMARY_HEADER,
'*test_py2_unicode.py:8: UserWarning: ??',
'*test_py2_unicode.py:8: UserWarning: \\u6d4b\\u8bd5',
'*warnings.warn(u"\u6d4b\u8bd5")',
'*warnings.py:*: UnicodeWarning: Warning is using unicode non*',
'* 1 passed, 2 warnings*',