Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04d4ee4 + 10e467c commit 91a8741Copy full SHA for 91a8741
1 file changed
Lib/test/test_pep3120.py
@@ -19,8 +19,8 @@ def test_badsyntax(self):
19
try:
20
import test.badsyntax_pep3120
21
except SyntaxError as msg:
22
- msg = str(msg).lower()
23
- self.assertTrue('utf-8' in msg or 'utf8' in msg)
+ msg = str(msg)
+ self.assertTrue('Non-UTF-8 code starting with' in msg)
24
else:
25
self.fail("expected exception didn't occur")
26
0 commit comments