Commit 10e467c9 authored by Victor Stinner's avatar Victor Stinner

(Merge 3.2) Issue #13913: Fix test_pep3120 for the UTF-8 codec name

parents be2cf338 1303298d
...@@ -19,8 +19,8 @@ class PEP3120Test(unittest.TestCase): ...@@ -19,8 +19,8 @@ class PEP3120Test(unittest.TestCase):
try: try:
import test.badsyntax_pep3120 import test.badsyntax_pep3120
except SyntaxError as msg: except SyntaxError as msg:
msg = str(msg).lower() msg = str(msg)
self.assertTrue('utf-8' in msg or 'utf8' in msg) self.assertTrue('Non-UTF-8 code starting with' in msg)
else: else:
self.fail("expected exception didn't occur") self.fail("expected exception didn't occur")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment