mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Merge branch
This commit is contained in:
commit
fed2c51eea
3 changed files with 8 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue