[Python-checkins] cpython (3.2): Issue #13913: Another fix test_pep3120 for the UTF-8 codec name

victor.stinner python-checkins at python.org
Wed Feb 15 23:44:39 CET 2012


http://hg.python.org/cpython/rev/824ddf6a30f2
changeset:   74971:824ddf6a30f2
branch:      3.2
parent:      74969:fe5eb6d35025
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Feb 15 23:44:03 2012 +0100
summary:
  Issue #13913: Another fix test_pep3120 for the UTF-8 codec name

files:
  Lib/test/test_pep3120.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_pep3120.py b/Lib/test/test_pep3120.py
--- a/Lib/test/test_pep3120.py
+++ b/Lib/test/test_pep3120.py
@@ -19,8 +19,8 @@
         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")
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list