]> granicus.if.org Git - python/commit
bpo-31320: No traceback to sys.stderr in test_ssl (#3360)
authorChristian Heimes <christian@python.org>
Tue, 5 Sep 2017 23:37:09 +0000 (16:37 -0700)
committerGitHub <noreply@github.com>
Tue, 5 Sep 2017 23:37:09 +0000 (16:37 -0700)
commit305e56c27afce605e5d2f71903a966cf0bb95038
treec4452d8dbe14c79a6497803e29236c71c6ed4ef2
parent60dbed18509f99af8eaa685d9736f954b8d621fb
bpo-31320: No traceback to sys.stderr in test_ssl (#3360)

In case PROTOCOL_TLS_SERVER is used for both client context and server
context, the test thread dies with OSError. Catch OSError to avoid
traceback on sys.stderr

Signed-off-by: Christian Heimes <christian@python.org>
Lib/test/test_ssl.py
Misc/NEWS.d/next/Tests/2017-09-05-14-23-35.bpo-31320.JRDHx7.rst [new file with mode: 0644]