From 5f67a3c028376e91a83c342e9cc983e4a4fcef77 Mon Sep 17 00:00:00 2001 From: AutomatedTester Date: Fri, 13 Nov 2020 11:36:53 +0000 Subject: [PATCH] [py] Correct proxy tests --- py/test/selenium/webdriver/chrome/proxy_tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/py/test/selenium/webdriver/chrome/proxy_tests.py b/py/test/selenium/webdriver/chrome/proxy_tests.py index 873aa013ee461..eecd670a2fd3e 100644 --- a/py/test/selenium/webdriver/chrome/proxy_tests.py +++ b/py/test/selenium/webdriver/chrome/proxy_tests.py @@ -13,10 +13,12 @@ def test_bad_proxy_doesnt_interfere(): options.ignore_local_proxy_environment_variables() - chrome_kwargs = {'options': options, 'keep_alive': False} + chrome_kwargs = {'options': options} driver = webdriver.Chrome(**chrome_kwargs) assert hasattr(driver, 'command_executor') assert hasattr(driver.command_executor, '_proxy_url') - assert type(driver.command_executor) == urllib3.PoolManager + assert type(driver.command_executor._conn) == urllib3.PoolManager + os.environ.pop('https_proxy') + os.environ.pop('http_proxy') driver.quit()