New submission from Claudiu.Popa: Running asyncio tests on Windows will give a ResourceWarning. The attached patch fixes this problem.
[1/1] test_asyncio D:\Projects\cpython\lib\test\test_asyncio\test_events.py:233: ResourceWarning: unclosed <socket.socket fd=668, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM, pro o=0, laddr=('127.0.0.1', 53044), raddr=('127.0.0.1', 53043)> gc.collect() D:\Projects\cpython\lib\test\test_asyncio\test_events.py:233: ResourceWarning: unclosed <socket.socket fd=724, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM, pro o=0, laddr=('127.0.0.1', 53043), raddr=('127.0.0.1', 53044)> gc.collect() 1 test OK. ---------- components: Library (Lib) files: asyncio_resource_warning.patch keywords: patch messages: 219681 nosy: Claudiu.Popa priority: normal severity: normal status: open title: asyncio tests ResourceWarning type: resource usage versions: Python 3.5 Added file: http://bugs.python.org/file35469/asyncio_resource_warning.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21651> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com