diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-07-07 10:26:56 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-07-07 10:26:56 (GMT) |
commit | fed2c51eea3383ab43e6f64da6e575dd62aa578e (patch) | |
tree | 0f942460fea82276c268c2b0757fcb4a670d82ea /Lib/test/test_tokenize.py | |
parent | 36f8dcde067659cb94a6666d745c103e7251875b (diff) | |
parent | 11f0b41e9de3805441ddd4142df9f6b7f4432ca7 (diff) | |
download | cpython-fed2c51eea3383ab43e6f64da6e575dd62aa578e.zip cpython-fed2c51eea3383ab43e6f64da6e575dd62aa578e.tar.gz cpython-fed2c51eea3383ab43e6f64da6e575dd62aa578e.tar.bz2 |
Merge branch
Diffstat (limited to 'Lib/test/test_tokenize.py')
-rw-r--r-- | Lib/test/test_tokenize.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py index 4e798d7..213e9b4 100644 --- a/Lib/test/test_tokenize.py +++ b/Lib/test/test_tokenize.py @@ -745,6 +745,10 @@ class TestTokenizerAdheresToPep0263(TestCase): f = 'tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt' self.assertTrue(self._testFile(f)) + def test_bad_coding_cookie(self): + self.assertRaises(SyntaxError, self._testFile, 'bad_coding.py') + self.assertRaises(SyntaxError, self._testFile, 'bad_coding2.py') + class Test_Tokenize(TestCase): |