]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119521: Remove _IncompleteInputError from the docs (GH-120993)
authorPetr Viktorin <encukou@gmail.com>
Thu, 27 Jun 2024 07:09:22 +0000 (09:09 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jun 2024 07:09:22 +0000 (09:09 +0200)
Lib/test/exception_hierarchy.txt
Lib/test/test_baseexception.py

index 5e83faab9a615873de7aefca367f8a8ec297780c..f2649aa2d41fefd53dcba4bbe9361a8ab8f3b6b1 100644 (file)
@@ -45,7 +45,6 @@ BaseException
       ├── StopAsyncIteration
       ├── StopIteration
       ├── SyntaxError
-      │    └── _IncompleteInputError
       │    └── IndentationError
       │         └── TabError
       ├── SystemError
index 6dc06c5e4bc9d52f80b0bc92ddd27703d8eed3c4..e599b02c17d9c015b9c2cf19414ae74eeda5874c 100644 (file)
@@ -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")