[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

The warning is gone. Close this thread. :)

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset cf2689e191f8 by Christian Heimes in branch 'default':
Issue #28093: Check more invalid combinations of PROTOCOL_TLS_CLIENT / 
PROTOCOL_TLS_SERVER
https://hg.python.org/cpython/rev/cf2689e191f8

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28093] ResourceWarning in test_ssl

2016-09-12 Thread Xiang Zhang

Xiang Zhang added the comment:

The problem lies in test_echo, using PROTOCOL_TLS_CLIENT as the server but 
doesn't not provide a hostname? I make a try which seems solving the problem 
but not sure this is what you want.

--
keywords: +patch
stage:  -> patch review
Added file: http://bugs.python.org/file44589/issue28093.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28093] ResourceWarning in test_ssl

2016-09-11 Thread Xiang Zhang

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 

  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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com