Message118870
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2010年10月16日.14:15:52 |
| SpamBayes Score |
1.7192126e-07 |
| Marked as misclassified |
No |
| Message-id |
<1287238554.77.0.835644404703.issue10123@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In #10114, I changed parser filename encoding from utf-8/strict to the filesystem encoding/surrogateescape. With C locale, the filesystem encoding is ASCII and test_doctest fails because it uses an unencoable filename (foo-bär@baz.py).
A solution is to write a test specific to non-ascii filenames and skip it if the filename is not encodable (try if os.fsencode() raises an UnicodeEncodeError or not), and use only ascii filenames in the other tests. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年10月16日 14:15:54 | vstinner | set | recipients:
+ vstinner |
| 2010年10月16日 14:15:54 | vstinner | set | messageid: <1287238554.77.0.835644404703.issue10123@psf.upfronthosting.co.za> |
| 2010年10月16日 14:15:53 | vstinner | link | issue10123 messages |
| 2010年10月16日 14:15:52 | vstinner | create |
|