Skip to content

Commit e36673c

Browse files
committed
[py] Update assertion
1 parent a7e2a53 commit e36673c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/test/selenium/webdriver/remote/remote_hub_connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ def test_command_executor_ssl_certificate_is_verified():
2929
webdriver.Remote(command_executor="https://wrong.host.badssl.com/", options=options)
3030
assert isinstance(excinfo.value.reason, urllib3.exceptions.SSLError)
3131
assert site in str(excinfo.value)
32-
assert "Hostname mismatch, certificate is not valid" in str(excinfo.value)
32+
+# Check for general SSL certificate validation failure
33+
assert "certificate is not valid" in str(excinfo.value).lower()

0 commit comments

Comments
 (0)