]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-126004: Remove redundant safeguards for codecs handlers tests (#127680)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Thu, 23 Jan 2025 15:06:16 +0000 (16:06 +0100)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2025 15:06:16 +0000 (16:06 +0100)
commitcf0b2da1e6947aa15be119582c2017765ab46863
treea1709a52c90878f3a5308a25cca2f2b7d7e8efa0
parentb23b27bc556857be73ee0f2379441c422b6fee26
gh-126004: Remove redundant safeguards for codecs handlers tests (#127680)

We remove the safeguards that were added in `Lib/test/test_capi/test_codecs.py`
since they are now redundant (see 32e07fd377f81cbeb8c108fc791a3e7d631319b6
for additional context).

Indeed, the codecs handlers now correctly handle the `start` and `end` positions
of `UnicodeError` objects and thus should not crash.
Lib/test/test_capi/test_codecs.py