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():