diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-15 21:24:17 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2012-02-15 21:24:17 (GMT) |
commit | 1303298d0696f2544c09865f4f997ee99e88eddc (patch) | |
tree | 2e5ccccbc23f29d0ef98691332f56e19672cc19a /Lib/test/test_pep3120.py | |
parent | 1ca93954e17e4f6f1230306997badbda3e5c68bc (diff) | |
download | cpython-1303298d0696f2544c09865f4f997ee99e88eddc.zip cpython-1303298d0696f2544c09865f4f997ee99e88eddc.tar.gz cpython-1303298d0696f2544c09865f4f997ee99e88eddc.tar.bz2 |
Issue #13913: Fix test_pep3120 for the UTF-8 codec name
Diffstat (limited to 'Lib/test/test_pep3120.py')
-rw-r--r-- | Lib/test/test_pep3120.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pep3120.py b/Lib/test/test_pep3120.py index 09fedf0..d4c20ef 100644 --- a/Lib/test/test_pep3120.py +++ b/Lib/test/test_pep3120.py @@ -20,7 +20,7 @@ class PEP3120Test(unittest.TestCase): import test.badsyntax_pep3120 except SyntaxError as msg: msg = str(msg) - self.assertTrue('UTF-8' in msg or 'utf8' in msg) + self.assertTrue('Non-UTF-8 code starting with' in msg) else: self.fail("expected exception didn't occur") |