mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Issue #13913: Another fix test_pep3120 for the UTF-8 codec name
This commit is contained in:
parent
5cb522cb32
commit
5c724a804a
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ class PEP3120Test(unittest.TestCase):
|
||||||
try:
|
try:
|
||||||
import test.badsyntax_pep3120
|
import test.badsyntax_pep3120
|
||||||
except SyntaxError as msg:
|
except SyntaxError as msg:
|
||||||
msg = str(msg)
|
msg = str(msg).lower()
|
||||||
self.assertTrue('Non-UTF-8 code starting with' in msg)
|
self.assertTrue('utf-8' in msg)
|
||||||
else:
|
else:
|
||||||
self.fail("expected exception didn't occur")
|
self.fail("expected exception didn't occur")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue