[issue31520] ResourceWarning: unclosed <socket.socket [closed] fd=3, ...> warning

STINNER Victor report at bugs.python.org
Mon Sep 25 08:33:40 EDT 2017


STINNER Victor added the comment:

> I’m curious how you manage to trigger the warning in the “closed” state.

It comes from Refleak buildbots. Example:

0:13:47 load avg: 3.24 [ 52/407] test_urllib2net passed (239 sec)
beginning 6 repetitions
123456
Resource 'http://www.imdb.com' is not available
/buildbot/buildarea/3.x.ware-gentoo-x86.refleak/build/Lib/test/libregrtest/refleak.py:253: ResourceWarning: unclosed <socket.socket [closed] fd=3, family=AddressFamily.AF_INET, type=2049, proto=6>
  gc.collect()
......

I failed to reproduce this exact warning. I don't know if it's related to the "Resource 'http://www.imdb.com' is not available" message.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31520>
_______________________________________


More information about the Python-bugs-list mailing list