New submission from Xiang Zhang:

I can consistently product a ResourceWarning when running test_ssl:

./python -m test test_ssl
Run tests sequentially
0:00:00 [1/1] test_ssl
Exception in thread Thread-81:
Traceback (most recent call last):
  File "/home/angwer/cpython/Lib/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/home/angwer/cpython/Lib/test/test_ssl.py", line 1924, in run
    if not self.wrap_conn():
  File "/home/angwer/cpython/Lib/test/test_ssl.py", line 1869, in wrap_conn
    self.sock, server_side=True)
  File "/home/angwer/cpython/Lib/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/home/angwer/cpython/Lib/ssl.py", line 764, in __init__
    raise ValueError("check_hostname requires server_hostname")
ValueError: check_hostname requires server_hostname

/home/angwer/cpython/Lib/threading.py:916: ResourceWarning: unclosed 
<socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, 
proto=0, laddr=('127.0.0.1', 34271), raddr=('127.0.0.1', 34156)>
  self.run()
1 test OK.

Total duration: 1 sec
Tests result: SUCCESS

----------
components: Tests
messages: 275940
nosy: christian.heimes, xiang.zhang
priority: normal
severity: normal
status: open
title: ResourceWarning in test_ssl
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28093>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to