mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45292: [PEP 654] add the ExceptionGroup and BaseExceptionGroup classes (GH-28569)
This commit is contained in:
parent
4bc5473a42
commit
f30ad65dbf
16 changed files with 1366 additions and 4 deletions
|
@ -4032,7 +4032,11 @@ order (MRO) for bases """
|
|||
for tp in builtin_types:
|
||||
object.__getattribute__(tp, "__bases__")
|
||||
if tp is not object:
|
||||
self.assertEqual(len(tp.__bases__), 1, tp)
|
||||
if tp is ExceptionGroup:
|
||||
num_bases = 2
|
||||
else:
|
||||
num_bases = 1
|
||||
self.assertEqual(len(tp.__bases__), num_bases, tp)
|
||||
|
||||
class L(list):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue