summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ssl.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-04-28 17:24:46 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-04-28 17:24:46 (GMT)
commit5aefa6637cadab22274aa96686cdfb132300e81d (patch)
tree2e0d195787b8dfdc53974d72c1fe6e2e50ca1adc /Lib/test/test_ssl.py
parent15399c3f09cfe779c1d55c0773db31824504ea31 (diff)
downloadcpython-5aefa6637cadab22274aa96686cdfb132300e81d.zip
cpython-5aefa6637cadab22274aa96686cdfb132300e81d.tar.gz
cpython-5aefa6637cadab22274aa96686cdfb132300e81d.tar.bz2
Fix whitespace
Diffstat (limited to 'Lib/test/test_ssl.py')
-rw-r--r--Lib/test/test_ssl.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 71eebde..138367b 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -609,7 +609,7 @@ class NetworkedTests(unittest.TestCase):
pem = ssl.get_server_certificate((host, port))
if not pem:
self.fail("No server certificate on %s:%s!" % (host, port))
-
+
try:
pem = ssl.get_server_certificate((host, port), ca_certs=CERTFILE)
except ssl.SSLError as x:
@@ -617,13 +617,13 @@ class NetworkedTests(unittest.TestCase):
if support.verbose:
sys.stdout.write("%s\n" % x)
else:
- self.fail("Got server certificate %s for %s:%s!" % (pem, host, port))
-
+ self.fail("Got server certificate %s for %s:%s!" % (pem, host, port))
+
pem = ssl.get_server_certificate((host, port), ca_certs=cert)
if not pem:
- self.fail("No server certificate on %s:%s!" % (host, port))
+ self.fail("No server certificate on %s:%s!" % (host, port))
if support.verbose:
- sys.stdout.write("\nVerified certificate for %s:%s is\n%s\n" % (host, port ,pem))
+ sys.stdout.write("\nVerified certificate for %s:%s is\n%s\n" % (host, port ,pem))
_test_get_server_certificate('svn.python.org', 443, SVN_PYTHON_ORG_ROOT_CERT)
if support.IPV6_ENABLED: