]> granicus.if.org Git - python/commitdiff
Issue #13913: Fix test_pep3120 for the UTF-8 codec name
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 15 Feb 2012 21:24:17 +0000 (22:24 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 15 Feb 2012 21:24:17 +0000 (22:24 +0100)
Lib/test/test_pep3120.py

index 09fedf0d543ac59df80de4198efe59859b0ecaa7..d4c20ef1d0ba8ebb4cc0d2dc46cea947217b9cb9 100644 (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")