mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-45292: [PEP-654] add except* (GH-29581)
This commit is contained in:
parent
850aefc2c6
commit
d60457a667
34 changed files with 7070 additions and 3332 deletions
|
@ -211,7 +211,8 @@ class ExceptionGroupSubgroupTests(ExceptionGroupTestBase):
|
|||
def test_basics_subgroup_split__bad_arg_type(self):
|
||||
bad_args = ["bad arg",
|
||||
OSError('instance not type'),
|
||||
[OSError('instance not type')],]
|
||||
[OSError, TypeError],
|
||||
(OSError, 42)]
|
||||
for arg in bad_args:
|
||||
with self.assertRaises(TypeError):
|
||||
self.eg.subgroup(arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue