diff --git a/test/test_ssl.py b/test/test_ssl.py index 89ad4b80..e4ff24e9 100644 --- a/test/test_ssl.py +++ b/test/test_ssl.py @@ -10,9 +10,9 @@ project_with_ssl_tests = test_projects.new_c_project( from urllib.request import urlopen context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2) + # badssl.com is a HTTPS test server that can be used to test SSL connections data = urlopen("https://tls-v1-2.badssl.com", context=context) - data = urlopen("https://raw.githubusercontent.com/pypa/cibuildwheel/main/CI.md", context=context) - data = urlopen("https://raw.githubusercontent.com/pypa/cibuildwheel/main/CI.md") + data = urlopen("https://tls-v1-2.badssl.com") """ ) ) diff --git a/unit_test/download_test.py b/unit_test/download_test.py index ca54e9dc..4c5f9edc 100644 --- a/unit_test/download_test.py +++ b/unit_test/download_test.py @@ -5,7 +5,7 @@ import pytest from cibuildwheel.util.file import download -DOWNLOAD_URL = "https://raw.githubusercontent.com/pypa/cibuildwheel/v1.6.3/requirements-dev.txt" +DOWNLOAD_URL = "https://cdn.jsdelivr.net/gh/pypa/cibuildwheel@v1.6.3/requirements-dev.txt" def test_download(monkeypatch, tmp_path):