diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-15 22:44:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-15 22:44:03 (GMT) |
commit | 5c724a804af2ed06977af0b4e997692640b5accb (patch) | |
tree | 1347d7ffb9af35a14b87920e933c7dc9aa0d0899 /Lib/test | |
parent | 5cb522cb32541c5c98df5d4571fef0ecf988cbaa (diff) | |
download | cpython-5c724a804af2ed06977af0b4e997692640b5accb.zip cpython-5c724a804af2ed06977af0b4e997692640b5accb.tar.gz cpython-5c724a804af2ed06977af0b4e997692640b5accb.tar.bz2 |
Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
Diffstat (limited to 'Lib/test')
-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 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") |