]> granicus.if.org Git - python/commit
[3.6] bpo-31320: No traceback to sys.stderr in test_ssl (GH-3360) (GH-3369)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 6 Sep 2017 01:11:31 +0000 (18:11 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Wed, 6 Sep 2017 01:11:31 +0000 (18:11 -0700)
commitc506403faf8dbfc8baf4212e8e2aedb7268acb5e
treeee3b721e6f799641314b2e30536e88e0f51c72cd
parent56b56e3da006279b9b09d73db2f13ab3d88ee996
[3.6] bpo-31320: No traceback to sys.stderr in test_ssl (GH-3360) (GH-3369)

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>
(cherry picked from commit 305e56c27afce605e5d2f71903a966cf0bb95038)
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]