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: test_ssl kicks up a lot of ResourceWarnings
Type: behavior Stage: resolved
Components: Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, pitrou, python-dev
Priority: normal Keywords: easy

Created on 2013-01-10 20:18 by benjamin.peterson, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg179594 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2013-01-10 20:18
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.
msg179827 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-01-12 20:59
New changeset 2c3f5ed7a5c9 by Antoine Pitrou in branch '3.3':
Issue #16923: Fix ResourceWarnings in test_ssl.
http://hg.python.org/cpython/rev/2c3f5ed7a5c9

New changeset f79d282c8147 by Antoine Pitrou in branch 'default':
Issue #16923: Fix ResourceWarnings in test_ssl.
http://hg.python.org/cpython/rev/f79d282c8147
msg179828 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-01-12 21:01
Done!
History
Date User Action Args
2022-04-11 14:57:40adminsetgithub: 61127
2013-01-12 21:01:41pitrousetstatus: open -> closed
resolution: fixed
messages: + msg179828

stage: needs patch -> resolved
2013-01-12 20:59:28python-devsetnosy: + python-dev
messages: + msg179827
2013-01-10 22:18:23pitrousetnosy: + pitrou
2013-01-10 20:18:15benjamin.petersoncreate