Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Fix an unclosed transport error in test_events #410

Merged
merged 1 commit into from
Sep 2, 2016

Conversation

ronf
Copy link

@ronf ronf commented Sep 1, 2016

When running the asyncio unit tests, I noticed that I was seeing the
following error from test_ssl_connect_accepted_socket():

/Volumes/ronf/src/asyncio/asyncio/sslproto.py:328: ResourceWarning: unclosed transport <asyncio.sslproto._SSLProtocolTransport object at 0x10d7d57b8>
warnings.warn("unclosed transport %r" % self, ResourceWarning)

This commit fixes this error by calling close on the transport which is
opened rather than calling close on the socket of the accepted
connection used to create it.

When running the asyncio unit tests, I noticed that I was seeing the
following error from test_ssl_connect_accepted_socket():

/Volumes/ronf/src/asyncio/asyncio/sslproto.py:328: ResourceWarning:
unclosed transport <asyncio.sslproto._SSLProtocolTransport object at
0x10d7d57b8>
  warnings.warn("unclosed transport %r" % self, ResourceWarning)

This commit fixes this error by calling close on the transport which is
opened rather than calling close on the socket of the accepted
connection used to create it.
@asvetlov asvetlov merged commit 532c096 into python:master Sep 2, 2016
@asvetlov
Copy link

asvetlov commented Sep 2, 2016

thanks

@ronf ronf deleted the test_events_fix branch September 2, 2016 05:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants