diff options
| author | engn33r <engn33r@users.noreply.github.com> | 2021-11-22 07:57:09 -0800 |
|---|---|---|
| committer | engn33r <engn33r@users.noreply.github.com> | 2021-11-22 07:57:09 -0800 |
| commit | cfde74742333408edb2d99b427bd0cf417fff906 (patch) | |
| tree | d1893ccba2fd4435d9088d82dd3ce4a724f156b6 /websocket | |
| parent | f11f1b340d207119538cb8bcb437d5fb41f5e20f (diff) | |
| download | websocket-client-cfde74742333408edb2d99b427bd0cf417fff906.tar.gz | |
Fix SSL test errors from ssl.PROTOCOL_TLS_CLIENT change
Diffstat (limited to 'websocket')
| -rw-r--r-- | websocket/tests/test_http.py | 1 | ||||
| -rw-r--r-- | websocket/tests/test_websocket.py | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/websocket/tests/test_http.py b/websocket/tests/test_http.py index f538879..83a763d 100644 --- a/websocket/tests/test_http.py +++ b/websocket/tests/test_http.py @@ -138,7 +138,6 @@ class HttpTest(unittest.TestCase): @unittest.skipUnless(TEST_WITH_INTERNET, "Internet-requiring tests are disabled") def testSSLopt(self): ssloptions = { - "cert_reqs": ssl.CERT_NONE, "check_hostname": False, "server_hostname": "ServerName", "ssl_version": ssl.PROTOCOL_TLS_CLIENT, diff --git a/websocket/tests/test_websocket.py b/websocket/tests/test_websocket.py index d67c700..8b34aa5 100644 --- a/websocket/tests/test_websocket.py +++ b/websocket/tests/test_websocket.py @@ -429,9 +429,8 @@ class HandshakeTest(unittest.TestCase): @unittest.skipUnless(TEST_WITH_INTERNET, "Internet-requiring tests are disabled") def testManualHeaders(self): - websock3 = ws.WebSocket(sslopt={"cert_reqs": ssl.CERT_NONE, - "ca_certs": ssl.get_default_verify_paths().capath, - "ca_cert_path": ssl.get_default_verify_paths().openssl_cafile}) + websock3 = ws.WebSocket(sslopt={"ca_certs": ssl.get_default_verify_paths().cafile, + "ca_cert_path": ssl.get_default_verify_paths().capath}) self.assertRaises(ws._exceptions.WebSocketBadStatusException, websock3.connect, "wss://api.bitfinex.com/ws/2", cookie="chocolate", origin="testing_websockets.com", |
