This commit is contained in:
Antoine Pitrou 2012-02-15 22:30:29 +01:00
commit 91a8741960
1 changed files with 2 additions and 2 deletions

View File

@ -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")