[Python-checkins] cpython (merge 3.2 -> default): (Merge 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:03 CET 2012
http://hg.python.org/cpython/rev/170a224ce01e
changeset: 74962:170a224ce01e
parent: 74960:ba5b337ecc27
parent: 74961:5b8f146103fa
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Feb 15 22:25:51 2012 +0100
summary:
(Merge 3.2) Issue #13913: 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).lower()
- self.assertTrue('utf-8' in msg or 'utf8' in msg)
+ msg = str(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