From b64d5ceb7e4f7eecf87a405f76037ee152a298eb Mon Sep 17 00:00:00 2001 From: tboy1337 Date: Wed, 22 Oct 2025 16:15:17 +0100 Subject: [PATCH] Update test_requests.py to use expired CA certificate for cross-platform compatibility --- tests/test_requests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()