summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-03-29 16:56:03 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-03-29 16:56:03 (GMT)
commit972d5bb763ad0c8d233801f8d4ffc51f14126b1d (patch)
tree3e7463d2680c2c68213f103584c272dee1584825 /Lib/test/test_ssl.py
parent22e162f462b7f883b65d13c3462325c4fd163dc0 (diff)
downloadcpython-972d5bb763ad0c8d233801f8d4ffc51f14126b1d.zip
cpython-972d5bb763ad0c8d233801f8d4ffc51f14126b1d.tar.gz
cpython-972d5bb763ad0c8d233801f8d4ffc51f14126b1d.tar.bz2
Use a subtest in test_ssl.test_echo
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py9
1 files 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: