Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, vstinner
Date 2008-10-02.23:49:03
SpamBayes Score 5.49735e-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:04amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, vstinner
2008-10-02 23:49:04amaury.forgeotdarcsetmessageid: <1222991344.9.0.338303026116.issue4021@psf.upfronthosting.co.za>
2008-10-02 23:49:03amaury.forgeotdarclinkissue4021 messages
2008-10-02 23:49:03amaury.forgeotdarccreate