Make testPayloadDefaultCiphers work regardless of OpenSSL default ciphers

This commit is contained in:
Adrián Chaves 2020-06-30 20:00:30 +02:00
parent 35d23a9c45
commit 1bf4e26b6e
1 changed files with 3 additions and 1 deletions

View File

@ -416,5 +416,7 @@ class WebClientCustomCiphersSSLTestCase(WebClientSSLTestCase):
def testPayloadDefaultCiphers(self):
s = "0123456789" * 10
d = getPage(self.getURL("payload"), body=s, contextFactory=ScrapyClientContextFactory())
settings = Settings({'DOWNLOADER_CLIENT_TLS_CIPHERS': 'CAMELLIA128-SHA256'})
client_context_factory = create_instance(ScrapyClientContextFactory, settings=settings, crawler=None)
d = getPage(self.getURL("payload"), body=s, contextFactory=client_context_factory)
return self.assertFailure(d, OpenSSL.SSL.Error)