File tree Expand file tree Collapse file tree
selenium/webdriver/remote
test/unit/selenium/webdriver/remote Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ def _get_connection_manager(self):
137137 pool_manager_init_args ['ca_certs' ] = self ._ca_certs
138138
139139 if self ._proxy_url :
140- if self ._proxy_url .startswith ('sock' ):
140+ if self ._proxy_url .lower (). startswith ('sock' ):
141141 from urllib3 .contrib .socks import SOCKSProxyManager
142142 return SOCKSProxyManager (self ._proxy_url , ** pool_manager_init_args )
143143 return urllib3 .ProxyManager (self ._proxy_url , ** pool_manager_init_args )
Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ def mock_proxy_settings_missing(monkeypatch):
149149
150150@pytest .fixture (scope = "function" )
151151def mock_socks_proxy_settings (monkeypatch ):
152- http_proxy = 'socks5 ://http_proxy.com:8080'
153- https_proxy = 'socks5 ://https_proxy.com:8080'
152+ http_proxy = 'SOCKS5 ://http_proxy.com:8080'
153+ https_proxy = 'SOCKS5 ://https_proxy.com:8080'
154154 monkeypatch .setenv ("HTTPS_PROXY" , https_proxy )
155155 monkeypatch .setenv ("HTTP_PROXY" , http_proxy )
156156 monkeypatch .setenv ("https_proxy" , https_proxy )
You can’t perform that action at this time.
0 commit comments