mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
bpo-44911: Fixed IsolatedAsyncioTestCase from throwing an exception on leaked tasks (GH-27765)
This commit is contained in:
parent
ad0a8a9c62
commit
2cb1a6806c
3 changed files with 22 additions and 1 deletions
|
@ -135,7 +135,7 @@ class IsolatedAsyncioTestCase(TestCase):
|
|||
task.cancel()
|
||||
|
||||
loop.run_until_complete(
|
||||
asyncio.gather(*to_cancel, loop=loop, return_exceptions=True))
|
||||
asyncio.gather(*to_cancel, return_exceptions=True))
|
||||
|
||||
for task in to_cancel:
|
||||
if task.cancelled():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue