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

index d4c20ef1d0ba8ebb4cc0d2dc46cea947217b9cb9..5b63998cf592a7bb8f3970830c06a975cb478e6b 100644 (file)
@@ -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")