[New-bugs-announce] [issue19580] Got resource warning when running test_base_events (test_asyncio)

Vajrasky Kok report at bugs.python.org
Thu Nov 14 09:08:56 CET 2013


New submission from Vajrasky Kok:

$ ./python Lib/test/test_asyncio/test_base_events.py 
............................./home/ethan/Documents/code/python/cpython3.4/Lib/unittest/case.py:158: ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
  callable_obj(*args, **kwargs)
..............
----------------------------------------------------------------------
Ran 43 tests in 0.219s

OK
sys:1: ResourceWarning: unclosed <socket.socket fd=8, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('0.0.0.0', 0)>
sys:1: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('0.0.0.0', 0)>
sys:1: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('0.0.0.0', 0)>

Attached the patch to close the leak in the test.

----------
components: Tests
files: resource_warning_test_base_events_asyncio.patch
keywords: patch
messages: 202820
nosy: vajrasky
priority: normal
severity: normal
status: open
title: Got resource warning when running test_base_events (test_asyncio)
type: resource usage
versions: Python 3.4
Added file: http://bugs.python.org/file32608/resource_warning_test_base_events_asyncio.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19580>
_______________________________________


More information about the New-bugs-announce mailing list