diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-15 21:25:51 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-15 21:25:51 (GMT) |
commit | 10e467c963fcd3eef9b0e0b68365e6a59682664b (patch) | |
tree | f6014e18968373feca5ec14719aa8c0a6754a99e | |
parent | be2cf338e9baef1f2479a33a8c7b5552bf9bd86f (diff) | |
parent | 1303298d0696f2544c09865f4f997ee99e88eddc (diff) | |
download | cpython-10e467c963fcd3eef9b0e0b68365e6a59682664b.zip cpython-10e467c963fcd3eef9b0e0b68365e6a59682664b.tar.gz cpython-10e467c963fcd3eef9b0e0b68365e6a59682664b.tar.bz2 |
(Merge 3.2) Issue #13913: Fix test_pep3120 for the UTF-8 codec name
-rw-r--r-- | 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 index 496f8da..d4c20ef 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).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") |