diff --git a/tests/test_requests.py b/tests/test_requests.py index 75d2deff2e..6bfb18d0f2 100644 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -2961,7 +2961,11 @@ def response_handler(sock): r1 = s.get(url, verify=False) assert r1.status_code == 200 - r2 = s.get(url, verify="tests/certs/valid/ca/ca.crt") + # Use expired/ca/ca.crt directly for cross-platform compatibility. + # tests/certs/valid/ca is a symlink to ../expired/ca which doesn't + # work reliably on Windows without a specific Git configuration. + # The valid server cert is signed by the expired CA, so this path is correct. + r2 = s.get(url, verify="tests/certs/expired/ca/ca.crt") assert r2.status_code == 200 close_server.set()