Skip to content

Commit e9a1595

Browse files
committed
[py] Add xfail marker
1 parent 3f6d4b5 commit e9a1595

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import os
1919
import subprocess
20+
import sys
2021
import time
2122
from unittest.mock import patch
2223

@@ -107,6 +108,7 @@ def test_log_output_null_default(driver, capfd) -> None:
107108
driver.quit()
108109

109110

111+
@pytest.mark.xfail(sys.platform == "win32", reason="chromedriver doesn't return an error on windows if you use an invalid profile path")
110112
@pytest.mark.no_driver_after_test
111113
def test_driver_is_stopped_if_browser_cant_start(clean_driver, clean_options, driver_executable) -> None:
112114
clean_options.add_argument("--user-data-dir=/no/such/location")

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import os
1919
import subprocess
20+
import sys
2021
import time
2122
from unittest.mock import patch
2223

@@ -107,6 +108,7 @@ def test_log_output_null_default(driver, capfd) -> None:
107108
driver.quit()
108109

109110

111+
@pytest.mark.xfail(sys.platform == "win32", reason="edgedriver doesn't return an error on windows if you use an invalid profile path")
110112
@pytest.mark.no_driver_after_test
111113
def test_driver_is_stopped_if_browser_cant_start(clean_driver, clean_options, clean_service, driver_executable) -> None:
112114
clean_options.add_argument("--user-data-dir=/no/such/location")

0 commit comments

Comments
 (0)