From 2efea074d2c5aaaf355b26647d153fe14aca1442 Mon Sep 17 00:00:00 2001 From: Corey Goldberg <1113081+cgoldberg@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:10:36 -0400 Subject: [PATCH] [py] Fix path in unit test so it works cross-platform --- .../unit/selenium/webdriver/remote/remote_connection_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/test/unit/selenium/webdriver/remote/remote_connection_tests.py b/py/test/unit/selenium/webdriver/remote/remote_connection_tests.py index ed07ff30b7fa2..d4a353c5f67e1 100644 --- a/py/test/unit/selenium/webdriver/remote/remote_connection_tests.py +++ b/py/test/unit/selenium/webdriver/remote/remote_connection_tests.py @@ -15,6 +15,7 @@ # specific language governing permissions and limitations # under the License. +import os from unittest.mock import patch from urllib import parse @@ -222,7 +223,7 @@ def test_get_connection_manager_for_certs_and_timeout(): conn = remote_connection._get_connection_manager() assert conn.connection_pool_kw["timeout"] == 10 assert conn.connection_pool_kw["cert_reqs"] == "CERT_REQUIRED" - assert "certifi/cacert.pem" in conn.connection_pool_kw["ca_certs"] + assert f"certifi{os.path.sep}cacert.pem" in conn.connection_pool_kw["ca_certs"] def test_default_socket_timeout_is_correct():