[New-bugs-announce] [issue21651] asyncio tests ResourceWarning

Claudiu.Popa report at bugs.python.org
Tue Jun 3 13:12:34 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue21651>
_______________________________________


More information about the New-bugs-announce mailing list