Skip to content

Commit

Permalink
[3.13] gh-119521: Remove _IncompleteInputError from the docs (GH-120993
Browse files Browse the repository at this point in the history
…) (GH-121076)

gh-119521: Remove _IncompleteInputError from the docs (GH-120993)
(cherry picked from commit 1167a9a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
  • Loading branch information
miss-islington and encukou authored Jun 27, 2024
1 parent 49e5740 commit 312a32a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Lib/test/exception_hierarchy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ BaseException
├── StopAsyncIteration
├── StopIteration
├── SyntaxError
│ └── _IncompleteInputError
│ └── IndentationError
│ └── TabError
├── SystemError
Expand Down
3 changes: 3 additions & 0 deletions Lib/test/test_baseexception.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def test_inheritance(self):
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")
Expand Down

0 comments on commit 312a32a

Please sign in to comment.