[issue27746] ResourceWarnings in test_asyncio
Paul McGuire
report at bugs.python.org
Sun Aug 21 07:27:42 EDT 2016
Paul McGuire added the comment:
I was about to report this same issue - I get the error message even though I explicitly call transport.close():
C:\Python35\lib\asyncio\selector_events.py:582: ResourceWarning: unclosed transport <_SelectorDatagramTransport closing fd=232>
It looks like the _sock attribute of the Transport subclasses must be set to None in their close() methods. (The presence of a non-None _sock is used elsewhere as an indicator of whether the transport has been closed or not.
----------
nosy: +Paul McGuire
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27746>
_______________________________________
More information about the Python-bugs-list
mailing list