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

victor.stinner python-checkins at python.org
Wed Feb 15 22:25:01 CET 2012


http://hg.python.org/cpython/rev/5b8f146103fa
changeset:   74961:5b8f146103fa
branch:      3.2
parent:      74959:9eb77d455be1
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Feb 15 22:24:17 2012 +0100
summary:
  Issue #13913: Fix test_pep3120 for the UTF-8 codec name

files:
  Lib/test/test_pep3120.py |  2 +-
  1 files changed, 1 insertions(+), 1 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
@@ -20,7 +20,7 @@
             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")
 

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


More information about the Python-checkins mailing list