From 1bf4e26b6ef48361a49df3a9d1d9a8bfa39db987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Tue, 30 Jun 2020 20:00:30 +0200 Subject: [PATCH] Make testPayloadDefaultCiphers work regardless of OpenSSL default ciphers --- tests/test_webclient.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)