Issue UnicodeWarning only for non-ascii unicode

Fix #2463
This commit is contained in:
Bruno Oliveira
2017-06-05 10:43:15 -03:00
parent 5ee9793c99
commit 9d41eaedbf
3 changed files with 8 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ def test_py2_unicode(testdir, pyfile_with_warnings):
'*test_py2_unicode.py:8: UserWarning: \u6d4b\u8bd5',
'*warnings.warn(u"\u6d4b\u8bd5")',
'*warnings.py:*: UnicodeWarning: This warning*\u6d4b\u8bd5',
'*warnings.py:*: UnicodeWarning: Warning is using unicode non*',
'* 1 passed, 2 warnings*',
])