diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-16 09:54:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 09:54:58 (GMT) |
commit | 8516ca500eb45ecf997a471f003df02a9eb767ce (patch) | |
tree | 25c97a453f062a430139ac47ba5eecb474e7b89c /Lib/unittest/async_case.py | |
parent | 1960409a6dcbd1e3527f02b523bd27df9086dd77 (diff) | |
download | cpython-8516ca500eb45ecf997a471f003df02a9eb767ce.zip cpython-8516ca500eb45ecf997a471f003df02a9eb767ce.tar.gz cpython-8516ca500eb45ecf997a471f003df02a9eb767ce.tar.bz2 |
bpo-44911: Fixed IsolatedAsyncioTestCase from throwing an exception on leaked tasks (GH-27765)
(cherry picked from commit 2cb1a6806c0cefab0c3a40fdd428a89a4392570e)
Co-authored-by: Bar Harel <bar.harel@biocatch.com>
Diffstat (limited to 'Lib/unittest/async_case.py')
-rw-r--r-- | Lib/unittest/async_case.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/async_case.py b/Lib/unittest/async_case.py index 520213c..86ed704 100644 --- a/Lib/unittest/async_case.py +++ b/Lib/unittest/async_case.py @@ -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(): |