summaryrefslogtreecommitdiff
path: root/tests/test_ssl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ssl.py')
-rw-r--r--tests/test_ssl.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index 0635994..47f8cce 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -142,14 +142,7 @@ class SSLClientTestCase(unittest.TestCase):
try:
ctx = SSL.Context('sslv23')
s = SSL.Connection(ctx)
- try:
- s.connect(self.srv_addr)
- except SSL.SSLError, e:
- # XXX Not totally sure if this is correct, but SSLv2 handling DID change.
- if m2.OPENSSL_VERSION_NUMBER < 0x90800F:
- self.failUnlessEqual(e[0], 'unsupported protocol')
- else:
- self.failUnlessEqual(e[1], 'Software caused connection abort')
+ self.assertRaises(SSL.SSLError, s.connect, self.srv_addr)
s.close()
finally:
self.stop_server(pid)