Skip to content

Commit db00a84

Browse files
authored
[py] Fix path in unit test so it works cross-platform (#16033)
1 parent fbde7fa commit db00a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/test/unit/selenium/webdriver/remote/remote_connection_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18+
import os
1819
from unittest.mock import patch
1920
from urllib import parse
2021

@@ -222,7 +223,7 @@ def test_get_connection_manager_for_certs_and_timeout():
222223
conn = remote_connection._get_connection_manager()
223224
assert conn.connection_pool_kw["timeout"] == 10
224225
assert conn.connection_pool_kw["cert_reqs"] == "CERT_REQUIRED"
225-
assert "certifi/cacert.pem" in conn.connection_pool_kw["ca_certs"]
226+
assert f"certifi{os.path.sep}cacert.pem" in conn.connection_pool_kw["ca_certs"]
226227

227228

228229
def test_default_socket_timeout_is_correct():

0 commit comments

Comments
 (0)