diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-15 21:30:29 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-15 21:30:29 (GMT) |
commit | 91a874196096c9842144804861a4b1593d730315 (patch) | |
tree | ed4b28d19189f98dfd548d3d780ec3f96cb1d365 | |
parent | 04d4ee4e561724a111cf5cba7be399a2d9199dcb (diff) | |
parent | 10e467c963fcd3eef9b0e0b68365e6a59682664b (diff) | |
download | cpython-91a874196096c9842144804861a4b1593d730315.zip cpython-91a874196096c9842144804861a4b1593d730315.tar.gz cpython-91a874196096c9842144804861a4b1593d730315.tar.bz2 |
Merge
-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") |