mirror of https://github.com/scrapy/scrapy.git
Make testPayloadDefaultCiphers work regardless of OpenSSL default ciphers
This commit is contained in:
parent
35d23a9c45
commit
1bf4e26b6e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue