]> granicus.if.org Git - python/commitdiff
Use a subtest in test_ssl.test_echo
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Mar 2013 16:56:03 +0000 (17:56 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 29 Mar 2013 16:56:03 +0000 (17:56 +0100)
Lib/test/test_ssl.py

index 6318360099d351fe73e53518060caa01c5d4b952..431cd5a71c33ddf3d7d268fa885f269b030cc298 100644 (file)
@@ -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: