From 972d5bb763ad0c8d233801f8d4ffc51f14126b1d Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 29 Mar 2013 17:56:03 +0100 Subject: Use a subtest in test_ssl.test_echo --- Lib/test/test_ssl.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 6318360..431cd5a 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1385,10 +1385,11 @@ else: if support.verbose: sys.stdout.write("\n") for protocol in PROTOCOLS: - context = ssl.SSLContext(protocol) - context.load_cert_chain(CERTFILE) - server_params_test(context, context, - chatty=True, connectionchatty=True) + with self.subTest(protocol=ssl._PROTOCOL_NAMES[protocol]): + context = ssl.SSLContext(protocol) + context.load_cert_chain(CERTFILE) + server_params_test(context, context, + chatty=True, connectionchatty=True) def test_getpeercert(self): if support.verbose: -- cgit v0.12