]> granicus.if.org Git - python/commit
bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)
authorVictor Stinner <vstinner@redhat.com>
Wed, 6 Jun 2018 23:30:38 +0000 (01:30 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Jun 2018 23:30:38 +0000 (01:30 +0200)
commit9f04f0df6fdb27190690bda949d213893d14e807
tree277223e635b4e779d4f839f9f7957ae900008ffd
parent7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd
bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)

Fix "<CoroWrapper ...> was never yielded from" warning in
PyTask_PyFuture_Tests.test_error_in_call_soon() of
test_asyncio.test_tasks.

Close manually the coroutine on error.
Lib/test/test_asyncio/test_tasks.py