diff options
author | Bar Harel <bar.harel@biocatch.com> | 2021-08-16 08:21:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 08:21:08 (GMT) |
commit | 2cb1a6806c0cefab0c3a40fdd428a89a4392570e (patch) | |
tree | 86ef17b88214f75335bab94a7c28b6c89ad9846f /Lib/unittest/async_case.py | |
parent | ad0a8a9c629a7a0fa306fbdf019be63c701a8028 (diff) | |
download | cpython-2cb1a6806c0cefab0c3a40fdd428a89a4392570e.zip cpython-2cb1a6806c0cefab0c3a40fdd428a89a4392570e.tar.gz cpython-2cb1a6806c0cefab0c3a40fdd428a89a4392570e.tar.bz2 |
bpo-44911: Fixed IsolatedAsyncioTestCase from throwing an exception on leaked tasks (GH-27765)
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(): |