diff --git a/tests/test_webdriver.py b/tests/test_webdriver.py index b6aeae580..b8e026f1b 100644 --- a/tests/test_webdriver.py +++ b/tests/test_webdriver.py @@ -21,11 +21,9 @@ def test_webdriver_local_driver_not_present(browser_name): else: service = FirefoxService(executable_path="failpath") - with pytest.raises(WebDriverException) as e: + with pytest.raises(WebDriverException): Browser(browser_name, service=service) - assert "Message: 'failpath' executable needs to be in PATH." in str(e.value) - @pytest.mark.parametrize("browser_name", supported_browsers) def test_attach_file(request, browser_name):