Issue #13913: Fix test_pep3120 for the UTF-8 codec name

This commit is contained in:
Victor Stinner 2012-02-15 22:24:17 +01:00
parent 1ca93954e1
commit 1303298d06
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class PEP3120Test(unittest.TestCase):
import test.badsyntax_pep3120
except SyntaxError as msg:
msg = str(msg)
self.assertTrue('UTF-8' in msg or 'utf8' in msg)
self.assertTrue('Non-UTF-8 code starting with' in msg)
else:
self.fail("expected exception didn't occur")