mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-104169: Fix test_peg_generator after tokenizer refactoring (#110727)
* Fix test_peg_generator after tokenizer refactoring * Remove references to tokenizer.c in comments etc.
This commit is contained in:
parent
23645420dc
commit
17d65547df
10 changed files with 24 additions and 14 deletions
|
@ -1435,7 +1435,7 @@ class TestDetectEncoding(TestCase):
|
|||
self.assertEqual(consumed_lines, expected)
|
||||
|
||||
def test_latin1_normalization(self):
|
||||
# See get_normal_name() in tokenizer.c.
|
||||
# See get_normal_name() in Parser/tokenizer/helpers.c.
|
||||
encodings = ("latin-1", "iso-8859-1", "iso-latin-1", "latin-1-unix",
|
||||
"iso-8859-1-unix", "iso-latin-1-mac")
|
||||
for encoding in encodings:
|
||||
|
@ -1460,7 +1460,7 @@ class TestDetectEncoding(TestCase):
|
|||
|
||||
|
||||
def test_utf8_normalization(self):
|
||||
# See get_normal_name() in tokenizer.c.
|
||||
# See get_normal_name() in Parser/tokenizer/helpers.c.
|
||||
encodings = ("utf-8", "utf-8-mac", "utf-8-unix")
|
||||
for encoding in encodings:
|
||||
for rep in ("-", "_"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue