[New-bugs-announce] [issue25748] Resource warnings when run test_asyncio in leaks searching mode

Serhiy Storchaka report at bugs.python.org
Fri Nov 27 13:33:42 EST 2015


New submission from Serhiy Storchaka:

$ ./python -m test.regrtest -uall -R 3:3 test_asyncio
[1/1] test_asyncio
...
.Executing <Task finished coro=<CoroutineTests.test_async_def_wrapped.<locals>.start() done, defined at /home/serhiy/py/cpython-debug/Lib/test/test_asyncio/test_pep492.py:146> result=None created at /home/serhiy/py/cpython-debug/Lib/asyncio/base_events.py:317> took 0.133 seconds
/home/serhiy/py/cpython-debug/Lib/threading.py:864: ResourceWarning: unclosed <socket.socket fd=7, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 37715)>
  self._target(*self._args, **self._kwargs)
returning true from eof_received() has no effect when using ssl
returning true from eof_received() has no effect when using ssl
/home/serhiy/py/cpython-debug/Lib/asyncio/base_events.py:379: ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
  warnings.warn("unclosed event loop %r" % self, ResourceWarning)
...
1 test OK.

Cited lines are repeated 6 times (for the number of test runs).

----------
components: Tests, asyncio
messages: 255475
nosy: giampaolo.rodola, gvanrossum, haypo, pitrou, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: Resource warnings when run test_asyncio in leaks searching mode
type: resource usage
versions: Python 3.6

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


More information about the New-bugs-announce mailing list