Skip to content

Commit 1167a9a

Browse files
authored
gh-119521: Remove _IncompleteInputError from the docs (GH-120993)
1 parent 7d9c685 commit 1167a9a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/test/exception_hierarchy.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ BaseException
4545
├── StopAsyncIteration
4646
├── StopIteration
4747
├── SyntaxError
48-
│ └── _IncompleteInputError
4948
│ └── IndentationError
5049
│ └── TabError
5150
├── SystemError

Lib/test/test_baseexception.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ def test_inheritance(self):
7878
last_depth = depth
7979
finally:
8080
inheritance_tree.close()
81+
82+
# Underscore-prefixed (private) exceptions don't need to be documented
83+
exc_set = set(e for e in exc_set if not e.startswith('_'))
8184
self.assertEqual(len(exc_set), 0, "%s not accounted for" % exc_set)
8285

8386
interface_tests = ("length", "args", "str", "repr")

0 commit comments

Comments
 (0)