Skip to content

Commit 9dd7192

Browse files
authored
ci: fix failing tests due to rate-limiting (#2401)
raw.githubusercontent.com URLs are rate-limited now, change URLs
1 parent bd641d1 commit 9dd7192

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_ssl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from urllib.request import urlopen
1111
1212
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
13+
# badssl.com is a HTTPS test server that can be used to test SSL connections
1314
data = urlopen("https://tls-v1-2.badssl.com", context=context)
14-
data = urlopen("https://raw.githubusercontent.com/pypa/cibuildwheel/main/CI.md", context=context)
15-
data = urlopen("https://raw.githubusercontent.com/pypa/cibuildwheel/main/CI.md")
15+
data = urlopen("https://tls-v1-2.badssl.com")
1616
"""
1717
)
1818
)

unit_test/download_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from cibuildwheel.util.file import download
77

8-
DOWNLOAD_URL = "https://raw.githubusercontent.com/pypa/cibuildwheel/v1.6.3/requirements-dev.txt"
8+
DOWNLOAD_URL = "https://cdn.jsdelivr.net/gh/pypa/cibuildwheel@v1.6.3/requirements-dev.txt"
99

1010

1111
def test_download(monkeypatch, tmp_path):

0 commit comments

Comments
 (0)