summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2012-02-15 22:45:34 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2012-02-15 22:45:34 (GMT)
commit4aec77617f4ed29759125eecb2c04948a525d02d (patch)
tree7b5c3f9c35c97ca538da2b382481bd65c77b919d
parentcd77815e4ca1339422763b2ec47351d545409287 (diff)
parent5c724a804af2ed06977af0b4e997692640b5accb (diff)
downloadcpython-4aec77617f4ed29759125eecb2c04948a525d02d.zip
cpython-4aec77617f4ed29759125eecb2c04948a525d02d.tar.gz
cpython-4aec77617f4ed29759125eecb2c04948a525d02d.tar.bz2
(Merge 3.2) Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
-rw-r--r--Lib/test/test_pep3120.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pep3120.py b/Lib/test/test_pep3120.py
index d4c20ef..5b63998 100644
--- a/Lib/test/test_pep3120.py
+++ b/Lib/test/test_pep3120.py
@@ -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")