mirror of
https://github.com/python/cpython.git
synced 2024-11-21 12:59:38 +01:00
parent
7d9c68513d
commit
1167a9a30b
@ -45,7 +45,6 @@ BaseException
|
||||
├── StopAsyncIteration
|
||||
├── StopIteration
|
||||
├── SyntaxError
|
||||
│ └── _IncompleteInputError
|
||||
│ └── IndentationError
|
||||
│ └── TabError
|
||||
├── SystemError
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user