We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_ssl.ContextTests.test_set_groups
1 parent 001461a commit 220f043Copy full SHA for 220f043
Lib/test/test_ssl.py
@@ -964,7 +964,9 @@ def test_get_ciphers(self):
964
965
def test_set_groups(self):
966
ctx = ssl.create_default_context()
967
- self.assertIsNone(ctx.set_groups('P-256:X25519'))
+ # Use '?' for X25519 as the latter is not allowed if
968
+ # OpenSSL has been built with FIPS module support.
969
+ self.assertIsNone(ctx.set_groups('P-256:?X25519'))
970
self.assertRaises(ssl.SSLError, ctx.set_groups, 'P-256:xxx')
971
972
@unittest.skipUnless(CAN_GET_AVAILABLE_OPENSSL_GROUPS,
0 commit comments