Skip to content

Commit 065febe

Browse files
committed
Merge branch '3.13' of https://github.com/python/cpython into 3.13
2 parents 71d41f4 + 312a32a commit 065febe

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)