This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年04月20日 15:18 by eric.snow, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (4) | |||
|---|---|---|---|
| msg158837 - (view) | Author: Eric Snow (eric.snow) * (Python committer) | Date: 2012年04月20日 15:18 | |
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) |
|||
| msg158838 - (view) | Author: Eric Snow (eric.snow) * (Python committer) | Date: 2012年04月20日 15:22 | |
or even _not_ check the message string? |
|||
| msg158851 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2012年04月20日 17:04 | |
Committed in http://hg.python.org/cpython/rev/a281a6622714 (I think our issue detection algorithm grabs the last issue in a commit message instead of the first one). |
|||
| msg158857 - (view) | Author: Eric Snow (eric.snow) * (Python committer) | Date: 2012年04月20日 17:32 | |
thanks, Brett! That did the trick. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:29 | admin | set | github: 58838 |
| 2012年04月20日 17:32:30 | eric.snow | set | messages: + msg158857 |
| 2012年04月20日 17:04:08 | brett.cannon | set | status: open -> closed messages: + msg158851 assignee: brett.cannon resolution: fixed stage: resolved |
| 2012年04月20日 15:22:02 | eric.snow | set | messages: + msg158838 |
| 2012年04月20日 15:19:30 | eric.snow | set | versions:
+ Python 3.3 components: + Tests title: test_find_module_encoding should test for a less specific message (or -> test_find_module_encoding should test for a less specific message |
| 2012年04月20日 15:18:58 | eric.snow | create | |