(self)
| 925 | self.assertRaises(ValueError, ssl.SSLContext, 42) |
| 926 | |
| 927 | def test_ciphers(self): |
| 928 | ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) |
| 929 | ctx.set_ciphers("ALL") |
| 930 | ctx.set_ciphers("DEFAULT") |
| 931 | with self.assertRaisesRegex(ssl.SSLError, "No cipher can be selected"): |
| 932 | ctx.set_ciphers("^$:,;?*'dorothyx") |
| 933 | |
| 934 | @unittest.skipUnless(PY_SSL_DEFAULT_CIPHERS == 1, |
| 935 | "Test applies only to Python default ciphers") |
nothing calls this directly
no test coverage detected