Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91a8741

Browse files
committed
Merge
2 parents 04d4ee4 + 10e467c commit 91a8741

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/test_pep3120.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def test_badsyntax(self):
1919
try:
2020
import test.badsyntax_pep3120
2121
except SyntaxError as msg:
22-
msg = str(msg).lower()
23-
self.assertTrue('utf-8' in msg or 'utf8' in msg)
22+
msg = str(msg)
23+
self.assertTrue('Non-UTF-8 code starting with' in msg)
2424
else:
2525
self.fail("expected exception didn't occur")
2626

0 commit comments

Comments
 (0)