Lines Matching refs:SSLError
359 _ssl.SSLError,
396 self.assertRaises(ssl.SSLError, ssl.RAND_bytes, 16)
681 with self.assertRaises(ssl.SSLError):
1163 with self.assertRaisesRegex(ssl.SSLError, "No cipher can be selected"):
1382 with self.assertRaisesRegex(ssl.SSLError, "PEM lib"):
1384 with self.assertRaisesRegex(ssl.SSLError, "PEM lib"):
1391 with self.assertRaisesRegex(ssl.SSLError, "PEM lib"):
1393 with self.assertRaisesRegex(ssl.SSLError, "PEM lib"):
1395 with self.assertRaisesRegex(ssl.SSLError, "PEM lib"):
1399 with self.assertRaisesRegex(ssl.SSLError, "key values mismatch"):
1412 with self.assertRaises(ssl.SSLError):
1445 with self.assertRaises(ssl.SSLError):
1467 with self.assertRaisesRegex(ssl.SSLError, "PEM lib"):
1528 ssl.SSLError,
1533 ssl.SSLError,
1549 with self.assertRaises(ssl.SSLError) as cm:
1850 # The str() of a SSLError doesn't include the errno
1851 e = ssl.SSLError(1, "foo")
1863 with self.assertRaises(ssl.SSLError) as cm:
1871 # Check that the appropriate SSLError subclass is raised
2044 self.assertRaisesRegex(ssl.SSLError, "certificate verify failed",
2112 self.assertRaisesRegex(ssl.SSLError, "certificate verify failed",
2245 with self.assertRaisesRegex(ssl.SSLError, "No cipher can be selected"):
2291 except ssl.SSLError as e:
2347 self.assertRaises(ssl.SSLError, sslobj.write, b'foo')
2421 except ssl.SSLError as x:
2456 # SSLError - OpenSSL on Ubuntu abruptly closes the
2471 except (ssl.SSLError, OSError) as e:
2582 except ssl.SSLError as e:
2608 # handles SSLError and socket errors
2742 except ssl.SSLError:
2937 # Protocol mismatch can result in either an SSLError, or a
2939 except ssl.SSLError:
2974 with self.assertRaises(ssl.SSLError) as e:
2985 with self.assertRaises(ssl.SSLError) as e:
2995 with self.assertRaises(ssl.SSLError) as e:
3064 with self.assertRaisesRegex(ssl.SSLError,
3265 except ssl.SSLError as e:
3294 ssl.SSLError,
3359 except ssl.SSLError as e:
3997 with self.assertRaises(ssl.SSLError) as e:
4155 with self.assertRaises(ssl.SSLError):
4196 except ssl.SSLError as e:
4274 with self.assertRaises(ssl.SSLError) as cm:
4289 with self.assertRaises(ssl.SSLError) as cm:
4308 with self.assertRaises(ssl.SSLError) as cm:
4546 ssl.SSLError,
4616 with self.assertRaisesRegex(ssl.SSLError, 'not server'):
4952 except OSError as err: # ssl.SSLError inherits from OSError
4969 # the actual wrapping... we get an SSLError from OpenSSL. Typically
5011 self.assertIsInstance(wrap_error, ssl.SSLError)
5046 except OSError as err: # SSLError inherits from OSError
5058 self.assertIsInstance(wrap_error, ssl.SSLError)