Message74217
| Author |
amaury.forgeotdarc |
| Recipients |
amaury.forgeotdarc, vstinner |
| Date |
2008年10月02日.23:49:03 |
| SpamBayes Score |
5.497354e-07 |
| Marked as misclassified |
No |
| Message-id |
<1222991344.9.0.338303026116.issue4021@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This patch seems good to me, it fixes the following test:
Index: Lib/test/test_tokenize.py
===================================================================
--- Lib/test/test_tokenize.py (revision 66701)
+++ Lib/test/test_tokenize.py (working copy)
@@ -795,6 +795,8 @@
self.assertEquals(encoding, 'utf-8')
self.assertEquals(consumed_lines, [])
+ readline = self.get_readline((b'# coding: bad\n',))
+ self.assertRaises(SyntaxError, detect_encoding, readline)
class TestTokenize(TestCase): |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年10月02日 23:49:04 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, vstinner |
| 2008年10月02日 23:49:04 | amaury.forgeotdarc | set | messageid: <1222991344.9.0.338303026116.issue4021@psf.upfronthosting.co.za> |
| 2008年10月02日 23:49:03 | amaury.forgeotdarc | link | issue4021 messages |
| 2008年10月02日 23:49:03 | amaury.forgeotdarc | create |
|