Skip to content

Commit 9712241

Browse files
committed
Make test 14 more robust
(By making the sleep in the outer task longer.)
1 parent de3d820 commit 9712241

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_asyncio/test_taskgroups.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ async def crash_after(t):
388388

389389
async def runner():
390390
async with taskgroups.TaskGroup(name='g1') as g1:
391-
g1.create_task(crash_after(0.2))
391+
g1.create_task(crash_after(10))
392392

393393
async with taskgroups.TaskGroup(name='g2') as g2:
394394
g2.create_task(crash_after(0.1))
@@ -397,7 +397,6 @@ async def runner():
397397
with self.assertRaises(ExceptionGroup) as cm:
398398
await r
399399

400-
# TODO(guido): Check that the nested exception group is expected
401400
self.assertEqual(get_error_types(cm.exception), {ExceptionGroup})
402401
self.assertEqual(get_error_types(cm.exception.exceptions[0]), {ValueError})
403402

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy