Skip to content

Commit 6516203

Browse files
committed
[py] Move asserts out of context manager
1 parent b88be09 commit 6516203

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def test_log_output_as_filename(clean_driver, clean_options, driver_executable)
7070
driver = clean_driver(options=clean_options, service=service)
7171
with open(log_file) as fp:
7272
out = fp.read()
73-
assert "Starting" in out
74-
assert "started successfully" in out
73+
assert "Starting" in out
74+
assert "started successfully" in out
7575
finally:
7676
driver.quit()
7777
os.remove(log_file)
@@ -87,8 +87,8 @@ def test_log_output_as_file(clean_driver, clean_options, driver_executable) -> N
8787
time.sleep(1)
8888
with open(log_name) as fp:
8989
out = fp.read()
90-
assert "Starting" in out
91-
assert "started successfully" in out
90+
assert "Starting" in out
91+
assert "started successfully" in out
9292
finally:
9393
driver.quit()
9494
log_file.close()

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def test_log_output_as_filename(clean_driver, clean_options, driver_executable)
7070
driver = clean_driver(options=clean_options, service=service)
7171
with open(log_file) as fp:
7272
out = fp.read()
73-
assert "Starting" in out
74-
assert "started successfully" in out
73+
assert "Starting" in out
74+
assert "started successfully" in out
7575
finally:
7676
driver.quit()
7777
os.remove(log_file)
@@ -87,8 +87,8 @@ def test_log_output_as_file(clean_driver, clean_options, driver_executable) -> N
8787
time.sleep(1)
8888
with open(log_name) as fp:
8989
out = fp.read()
90-
assert "Starting" in out
91-
assert "started successfully" in out
90+
assert "Starting" in out
91+
assert "started successfully" in out
9292
finally:
9393
driver.quit()
9494
log_file.close()

0 commit comments

Comments
 (0)