From: Antoine Pitrou Date: Fri, 29 Mar 2013 16:56:03 +0000 (+0100) Subject: Use a subtest in test_ssl.test_echo X-Git-Tag: v3.4.0a1~1072 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=972d5bb763ad0c8d233801f8d4ffc51f14126b1d;p=python Use a subtest in test_ssl.test_echo --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 6318360099..431cd5a71c 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: