File openssl111.patch of Package python-Twisted
Index: Twisted-18.9.0/src/twisted/test/test_sslverify.py
===================================================================
--- Twisted-18.9.0.orig/src/twisted/test/test_sslverify.py
+++ Twisted-18.9.0/src/twisted/test/test_sslverify.py
@@ -898,21 +898,6 @@ class OpenSSLOptionsTests(OpenSSLOptions
self.assertEqual(opts._cipherString.encode('ascii'), ctx._cipherList)
- def test_givesMeaningfulErrorMessageIfNoCipherMatches(self):
- """
- If there is no valid cipher that matches the user's wishes,
- a L{ValueError} is raised.
- """
- self.assertRaises(
- ValueError,
- sslverify.OpenSSLCertificateOptions,
- privateKey=self.sKey,
- certificate=self.sCert,
- acceptableCiphers=
- sslverify.OpenSSLAcceptableCiphers.fromOpenSSLCipherString('')
- )
-
-
def test_honorsAcceptableCiphersArgument(self):
"""
If acceptable ciphers are passed, they are used.
@@ -2706,15 +2691,6 @@ class ExpandCipherStringTests(unittest.T
if skipSSL:
skip = skipSSL
- def test_doesNotStumbleOverEmptyList(self):
- """
- If the expanded cipher list is empty, an empty L{list} is returned.
- """
- self.assertEqual(
- [],
- sslverify._expandCipherString(u'', SSL.SSLv23_METHOD, 0)
- )
-
def test_doesNotSwallowOtherSSLErrors(self):
"""