Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 6, 2018

Hide PendingDeprecationWarning in test__register_task_3().

https://bugs.python.org/issue33789

Hide PendingDeprecationWarning in test__register_task_3().
@vstinner vstinner requested a review from 1st1 June 6, 2018 23:03
@vstinner vstinner requested a review from asvetlov as a code owner June 6, 2018 23:03
@vstinner vstinner merged commit 7ed61e9 into python:master Jun 6, 2018
@vstinner vstinner deleted the asyncio_pending_warn branch June 6, 2018 23:13
@vstinner
Copy link
Member Author

vstinner commented Jun 6, 2018

I will backport this change with other test_asyncio changes at once into 3.7.

vstinner added a commit that referenced this pull request Jun 7, 2018
* 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 0eba7c3)

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

Hide PendingDeprecationWarning in test__register_task_3().

(cherry picked from commit 7ed61e9)

* 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 9f04f0d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants