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: Resource warnings when run test_asyncio in leaks searching mode
Type: resource usage Stage:
Components: asyncio, Tests Versions: Python 3.6
process
Status: closed Resolution: duplicate
Dependencies: Superseder: asyncio tests are getting noisy
View: 25272
Assigned To: Nosy List: giampaolo.rodola, gvanrossum, martin.panter, pitrou, serhiy.storchaka, vstinner, yselivanov
Priority: normal Keywords:

Created on 2015-11-27 18:33 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg255475 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-11-27 18:33
$ ./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).
msg255489 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2015-11-27 21:34
I guess this is not a special property of the leaks search. These messages are seen normally as well, see Issue 25693 and Issue 25272.
History
Date User Action Args
2022-04-11 14:58:24adminsetgithub: 69934
2015-11-27 21:34:59martin.pantersetstatus: open -> closed

nosy: + martin.panter
messages: + msg255489

superseder: asyncio tests are getting noisy
resolution: duplicate
2015-11-27 18:33:42serhiy.storchakacreate