]> granicus.if.org Git - python/commit
[3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478)
authorVictor Stinner <vstinner@redhat.com>
Thu, 7 Jun 2018 14:19:00 +0000 (16:19 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Jun 2018 14:19:00 +0000 (16:19 +0200)
commit3c417610ad318afecf471d59c53e5ae592740791
tree33ea6bd69703ef38c1a29abab2782ad23a15c6a1
parentf38ace61a39e64f5fde6f8f402e258177bdf7ff4
[3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478)

* bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460)

* Close sockets and streams to fix ResourceWarning warnings
* Catch also OSError to hide a traceback on an expected handshake
  error

(cherry picked from commit 0eba7c39132614a5730cda6b340e18dfb2d30d14)

* bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)

Hide PendingDeprecationWarning in test__register_task_3().

(cherry picked from commit 7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd)

* 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.

(cherry picked from commit 9f04f0df6fdb27190690bda949d213893d14e807)
Lib/test/test_asyncio/functional.py
Lib/test/test_asyncio/test_sslproto.py
Lib/test/test_asyncio/test_tasks.py