diff --git a/tests/test_webclient.py b/tests/test_webclient.py index 188e54602..78a8a23e7 100644 --- a/tests/test_webclient.py +++ b/tests/test_webclient.py @@ -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)