From: Victor Stinner Date: Wed, 15 Feb 2012 21:24:17 +0000 (+0100) Subject: Issue #13913: Fix test_pep3120 for the UTF-8 codec name X-Git-Tag: v3.2.3rc1~54^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1303298d0696f2544c09865f4f997ee99e88eddc;p=thirdparty%2FPython%2Fcpython.git Issue #13913: Fix test_pep3120 for the UTF-8 codec name --- diff --git a/Lib/test/test_pep3120.py b/Lib/test/test_pep3120.py index 09fedf0d543a..d4c20ef1d0ba 100644 --- a/Lib/test/test_pep3120.py +++ b/Lib/test/test_pep3120.py @@ -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")