[issue31320] test_ssl logs a traceback

Christian Heimes report at bugs.python.org
Tue Sep 5 17:07:27 EDT 2017


Christian Heimes added the comment:

The error occurs in the test case that uses a PROTOCOL_TLS_SERVER context for both client and server context. In that case, OpenSSL wrap_socket() fails internally and OpenSSL raises an OSError with errno 0.

Simple fix: catch OSError in the client thread and fail the test appropriately.

----------

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


More information about the Python-bugs-list mailing list