From: Victor Stinner Date: Wed, 15 Feb 2012 22:44:03 +0000 (+0100) Subject: Issue #13913: Another fix test_pep3120 for the UTF-8 codec name X-Git-Tag: v3.2.3rc1~52 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c724a804af2ed06977af0b4e997692640b5accb;p=python Issue #13913: Another fix test_pep3120 for the UTF-8 codec name --- diff --git a/Lib/test/test_pep3120.py b/Lib/test/test_pep3120.py index d4c20ef1d0..5b63998cf5 100644 --- a/Lib/test/test_pep3120.py +++ b/Lib/test/test_pep3120.py @@ -19,8 +19,8 @@ class PEP3120Test(unittest.TestCase): try: import test.badsyntax_pep3120 except SyntaxError as msg: - msg = str(msg) - self.assertTrue('Non-UTF-8 code starting with' in msg) + msg = str(msg).lower() + self.assertTrue('utf-8' in msg) else: self.fail("expected exception didn't occur")