mirror of https://github.com/python/cpython
Merge
This commit is contained in:
commit
91a8741960
|
@ -19,8 +19,8 @@ class PEP3120Test(unittest.TestCase):
|
|||
try:
|
||||
import test.badsyntax_pep3120
|
||||
except SyntaxError as msg:
|
||||
msg = str(msg).lower()
|
||||
self.assertTrue('utf-8' in msg or 'utf8' in msg)
|
||||
msg = str(msg)
|
||||
self.assertTrue('Non-UTF-8 code starting with' in msg)
|
||||
else:
|
||||
self.fail("expected exception didn't occur")
|
||||
|
||||
|
|
Loading…
Reference in New Issue