]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856)
authorMichael Droettboom <mdboom@gmail.com>
Tue, 16 Aug 2022 15:54:13 +0000 (11:54 -0400)
committerGitHub <noreply@github.com>
Tue, 16 Aug 2022 15:54:13 +0000 (08:54 -0700)
commitf215d7cac9a6f9b51ba864e4252686dee4e45d64
treeac1e994facf859251ba6d174f4f041b30f427b87
parent9d515997f943b7b510268448f372dabcbf957858
gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856)

When loading a source file from disk, there is a separate UTF-8 validator
distinct from the one in `unicode_decode_utf8`. This exercises that code path
with the same set of invalid inputs as we use for testing the "other" UTF-8
decoder.
Lib/test/test_source_encoding.py