Message158837
test_find_module_encoding (in Lib/test/test_imp.py), has the following check:
self.assertRaisesRegex(SyntaxError,
r"Non-UTF-8 code starting with '\\xf6'"
r" in file .*badsyntax_pep3120.py",
imp.find_module, 'badsyntax_pep3120', path)
It may be worth changing to something like this (aligning with the changes in issue14629):
self.assertRaisesRegex(SyntaxError,
r"invalid or missing encoding declaration",
imp.find_module, 'badsyntax_pep3120', path) |
|
Date |
User |
Action |
Args |
2012-04-20 15:18:59 | eric.snow | set | recipients:
+ eric.snow, brett.cannon |
2012-04-20 15:18:59 | eric.snow | set | messageid: <1334935139.39.0.293792224706.issue14633@psf.upfronthosting.co.za> |
2012-04-20 15:18:58 | eric.snow | link | issue14633 messages |
2012-04-20 15:18:58 | eric.snow | create | |
|