Skip to content

Commit

Permalink
pythongh-119521: Remove _IncompleteInputError from the docs (pythonGH…
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou authored and mrahtz committed Jun 30, 2024
1 parent 38c568b commit 8182d66
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 8182d66

Please sign in to comment.