◐ Shell
clean mode source ↗

gh-94823: Improve coverage in tokenizer.c:valid_utf8 by mdboom · Pull Request #94856 · python/cpython

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.

ericsnowcurrently

@mdboom

ericsnowcurrently

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Aug 16, 2022
…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.
(cherry picked from commit f215d7c)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>

pablogsal pushed a commit that referenced this pull request

Aug 16, 2022
#96029)

Co-authored-by: Michael Droettboom <mdboom@gmail.com>

This was referenced

Aug 22, 2022