[New-bugs-announce] [issue27746] ResourceWarnings in test_asyncio

Martin Panter report at bugs.python.org
Fri Aug 12 08:13:42 EDT 2016


New submission from Martin Panter:

$ ./python -bWerror -m test -r -u all
. . .
0:12:58 [ 70/402] test_asyncio
Exception ignored in: <bound method _SSLProtocolTransport.__del__ of <asyncio.sslproto._SSLProtocolTransport object at 0x7fed4638f0c0>>
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/asyncio/sslproto.py", line 329, in __del__
    source=self)
ResourceWarning: unclosed transport <asyncio.sslproto._SSLProtocolTransport object at 0x7fed4638f0c0>
Exception ignored in: <bound method _SSLProtocolTransport.__del__ of <asyncio.sslproto._SSLProtocolTransport object at 0x7fed46317c88>>
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/asyncio/sslproto.py", line 329, in __del__
    source=self)
ResourceWarning: unclosed transport <asyncio.sslproto._SSLProtocolTransport object at 0x7fed46317c88>
Exception ignored in: <bound method _SSLProtocolTransport.__del__ of <asyncio.sslproto._SSLProtocolTransport object at 0x7fed46310f60>>
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/asyncio/sslproto.py", line 329, in __del__
    source=self)
ResourceWarning: unclosed transport <asyncio.sslproto._SSLProtocolTransport object at 0x7fed46310f60>
Executing <Task finished coro=<CoroutineTests.test_async_def_wrapped.<locals>.start() done, defined at /media/disk/home/proj/python/cpython/Lib/test/test_asyncio/test_pep492.py:149> result=None created at /media/disk/home/proj/python/cpython/Lib/asyncio/base_events.py:367> took 0.351 seconds

If necessary, you should be able to run with python -Wall -X tracemalloc=33 to get a stack dump where the resources (transport objects or whatever) were allocated.

----------
components: Tests, asyncio
messages: 272529
nosy: gvanrossum, haypo, martin.panter, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: ResourceWarnings in test_asyncio
type: behavior
versions: Python 3.5, Python 3.6

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


More information about the New-bugs-announce mailing list