This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: asyncio tests ResourceWarning
Type: resource usage Stage:
Components: Library (Lib) Versions: Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Claudiu.Popa, python-dev, vstinner
Priority: normal Keywords: patch

Created on 2014-06-03 11:12 by Claudiu.Popa, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
asyncio_resource_warning.patch Claudiu.Popa, 2014-06-03 11:12 review
Messages (3)
msg219681 - (view) Author: PCManticore (Claudiu.Popa) * (Python triager) Date: 2014-06-03 11:12
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.
msg219728 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-06-03 22:29
New changeset 9d2c0b41c1d5 by Victor Stinner in branch '3.4':
Issue #21651: Fix ResourceWarning when running asyncio tests on Windows.
http://hg.python.org/cpython/rev/9d2c0b41c1d5

New changeset b2f329e9cd18 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21651: Fix ResourceWarning when running asyncio tests on
http://hg.python.org/cpython/rev/b2f329e9cd18
msg219729 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2014-06-03 22:29
Thanks for the patch. I also applied it to Tulip.
History
Date User Action Args
2022-04-11 14:58:04adminsetgithub: 65850
2014-06-03 22:29:39vstinnersetstatus: open -> closed

nosy: + vstinner
messages: + msg219729

resolution: fixed
2014-06-03 22:29:12python-devsetnosy: + python-dev
messages: + msg219728
2014-06-03 11:12:34Claudiu.Popacreate