Skip to content

Commit 1049011

Browse files
committed
[py] Remove unused driver variable assignment
1 parent 3993d5b commit 1049011

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

py/test/selenium/webdriver/chrome/chrome_service_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_driver_is_stopped_if_browser_cant_start(clean_driver) -> None:
114114
options.add_argument("--user-data-dir=/no/such/location")
115115
service = Service()
116116
with pytest.raises(SessionNotCreatedException):
117-
driver = clean_driver(options=options, service=service)
117+
clean_driver(options=options, service=service)
118118
assert not service.is_connectable()
119119
assert service.process.poll() is not None
120120

py/test/selenium/webdriver/edge/edge_service_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def test_driver_is_stopped_if_browser_cant_start(clean_driver) -> None:
114114
options.add_argument("--user-data-dir=/no/such/location")
115115
service = Service()
116116
with pytest.raises(SessionNotCreatedException):
117-
driver = clean_driver(options=options, service=service)
117+
clean_driver(options=options, service=service)
118118
assert not service.is_connectable()
119119
assert service.process.poll() is not None
120120

py/test/selenium/webdriver/firefox/firefox_service_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_driver_is_stopped_if_browser_cant_start(clean_driver) -> None:
6969
options.add_argument("-profile=/no/such/location")
7070
service = Service()
7171
with pytest.raises(SessionNotCreatedException):
72-
driver = clean_driver(options=options, service=service)
72+
clean_driver(options=options, service=service)
7373
assert not service.is_connectable()
7474
assert service.process.poll() is not None
7575

0 commit comments

Comments
 (0)