Skip to content

Commit 5f67a3c

Browse files
[py] Correct proxy tests
1 parent 0b2eee8 commit 5f67a3c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

py/test/selenium/webdriver/chrome/proxy_tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ def test_bad_proxy_doesnt_interfere():
1313

1414
options.ignore_local_proxy_environment_variables()
1515

16-
chrome_kwargs = {'options': options, 'keep_alive': False}
16+
chrome_kwargs = {'options': options}
1717
driver = webdriver.Chrome(**chrome_kwargs)
1818

1919
assert hasattr(driver, 'command_executor')
2020
assert hasattr(driver.command_executor, '_proxy_url')
21-
assert type(driver.command_executor) == urllib3.PoolManager
21+
assert type(driver.command_executor._conn) == urllib3.PoolManager
22+
os.environ.pop('https_proxy')
23+
os.environ.pop('http_proxy')
2224
driver.quit()

0 commit comments

Comments
 (0)