Merge branch '3.13' of https://github.com/python/cpython into 3.13

This commit is contained in:
Thomas Wouters 2024-06-27 20:36:45 +02:00
commit 065febe6a5
2 changed files with 3 additions and 1 deletions

View file

@ -45,7 +45,6 @@ BaseException
├── StopAsyncIteration
├── StopIteration
├── SyntaxError
│ └── _IncompleteInputError
│ └── IndentationError
│ └── TabError
├── SystemError

View 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")