Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 6, 2018

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

https://bugs.python.org/issue33789

* Close sockets and streams to fix ResourceWarning warnings
* Catch also OSError to hide a traceback on an expected handshake
  error
@vstinner vstinner merged commit 0eba7c3 into python:master Jun 6, 2018
@vstinner vstinner deleted the asyncio_close branch June 6, 2018 23:12
@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.

4 participants