gh-113744: Add a new IncompleteInputError exception to improve incomplete input detection in the codeop module (#113745)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
This commit is contained in:
Pablo Galindo Salgado 2024-01-30 16:21:30 +00:00 committed by GitHub
parent 1f515e8a10
commit 39d102c2ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 21 additions and 4 deletions

View file

@ -567,7 +567,8 @@ class CompatPickleTests(unittest.TestCase):
RecursionError,
EncodingWarning,
BaseExceptionGroup,
ExceptionGroup):
ExceptionGroup,
IncompleteInputError):
continue
if exc is not OSError and issubclass(exc, OSError):
self.assertEqual(reverse_mapping('builtins', name),