gh-119521: Remove _IncompleteInputError from the docs (GH-120993)

This commit is contained in:
Petr Viktorin 2024-06-27 09:09:22 +02:00 committed by GitHub
parent 7d9c68513d
commit 1167a9a30b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,6 @@ BaseException
├── StopAsyncIteration ├── StopAsyncIteration
├── StopIteration ├── StopIteration
├── SyntaxError ├── SyntaxError
│ └── _IncompleteInputError
│ └── IndentationError │ └── IndentationError
│ └── TabError │ └── TabError
├── SystemError ├── SystemError

View File

@ -78,6 +78,9 @@ class ExceptionClassTests(unittest.TestCase):
last_depth = depth last_depth = depth
finally: finally:
inheritance_tree.close() inheritance_tree.close()
# Underscore-prefixed (private) exceptions don't need to be documented
exc_set = set(e for e in exc_set if not e.startswith('_'))
self.assertEqual(len(exc_set), 0, "%s not accounted for" % exc_set) self.assertEqual(len(exc_set), 0, "%s not accounted for" % exc_set)
interface_tests = ("length", "args", "str", "repr") interface_tests = ("length", "args", "str", "repr")