[New-bugs-announce] [issue16923] test_ssl kicks up a lot of ResourceWarnings

Benjamin Peterson report at bugs.python.org
Thu Jan 10 21:18:15 CET 2013


New submission from Benjamin Peterson:

Now #16900 is fixed, we get gunk like this:

 $ ./python -Wall Lib/test/regrtest.py -uall test_ssl
[1/1] test_ssl
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=1, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/test/test_ssl.py:211: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=1, proto=0>
  del ss
/home/benjamin/dev/python/3.3/Lib/test/test_ssl.py:232: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=1, proto=0>
  ss = ssl.wrap_socket(s)
/home/benjamin/dev/python/3.3/Lib/test/test_ssl.py:232: ResourceWarning: unclosed <ssl.SSLSocket object, fd=7, family=2, type=2049, proto=0>
  ss = ssl.wrap_socket(s)
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=2049, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/test/test_ssl.py:374: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=1, proto=0>
  ss = ssl.wrap_socket(s, server_side=True, certfile=CERTFILE)
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=7, family=2, type=1, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=1, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=6, family=2, type=1, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=8, family=2, type=2049, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/test/test_ssl.py:874: ResourceWarning: unclosed <ssl.SSLSocket object, fd=7, family=2, type=2049, proto=0>
  cert_reqs=ssl.CERT_NONE, ciphers="DEFAULT")
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=8, family=2, type=2049, proto=0>
  function()
Resource 'ipv6.google.com' is not available
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=8, family=2, type=1, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=9, family=2, type=1, proto=0>
  function()
/home/benjamin/dev/python/3.3/Lib/unittest/case.py:385: ResourceWarning: unclosed <ssl.SSLSocket object, fd=8, family=2, type=1, proto=0>
  function()
1 test OK.


This should be fixed.

----------
keywords: easy
messages: 179594
nosy: benjamin.peterson
priority: normal
severity: normal
stage: needs patch
status: open
title: test_ssl kicks up a lot of ResourceWarnings
type: behavior
versions: Python 3.3, Python 3.4

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


More information about the New-bugs-announce mailing list