From fdf10c58684c2d7b6c34dfd28d69b51f3970e2be Mon Sep 17 00:00:00 2001 From: Namit Nathwani Date: Thu, 21 Aug 2025 13:31:04 +0530 Subject: [PATCH] fix: TLS CA bundle not found error in tests - Adds certificate to the `pyfakefs` FS --- tests/test_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index e5321ccf3..fe832a40c 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -220,6 +220,10 @@ def test_tldextract_http_toggle( ): import socket + import certifi + + fs.add_real_file(certifi.where()) + # Disable sockets, will raise errors on HTTP calls socket_patch = patch.object(socket, "socket", side_effect=RuntimeError) environ_patch = patch.dict(