From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 27 Jun 2024 13:19:20 +0000 (+0200) Subject: [3.13] gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (GH-121076) X-Git-Tag: v3.13.0b4~164^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=312a32a74296229ae1c0c103a3ad2e31af79ff39;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (GH-121076) gh-119521: Remove _IncompleteInputError from the docs (GH-120993) (cherry picked from commit 1167a9a30b4b2f327ed987e845e378990d1ae6bf) Co-authored-by: Petr Viktorin --- diff --git a/Lib/test/exception_hierarchy.txt b/Lib/test/exception_hierarchy.txt index 5e83faab9a61..f2649aa2d41f 100644 --- a/Lib/test/exception_hierarchy.txt +++ b/Lib/test/exception_hierarchy.txt @@ -45,7 +45,6 @@ BaseException ├── StopAsyncIteration ├── StopIteration ├── SyntaxError - │ └── _IncompleteInputError │ └── IndentationError │ └── TabError ├── SystemError diff --git a/Lib/test/test_baseexception.py b/Lib/test/test_baseexception.py index 6dc06c5e4bc9..e599b02c17d9 100644 --- a/Lib/test/test_baseexception.py +++ b/Lib/test/test_baseexception.py @@ -78,6 +78,9 @@ class ExceptionClassTests(unittest.TestCase): last_depth = depth finally: 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) interface_tests = ("length", "args", "str", "repr")