From f8eb4eecf25b7a28a9bca6ae6c348a382577b715 Mon Sep 17 00:00:00 2001 From: francisco souza <108725+fsouza@users.noreply.github.com> Date: Thu, 9 Nov 2023 22:47:11 -0500 Subject: [PATCH] tests/test_webdriver: remove assertion on exception message Asserting on the message that we don't control is prone to break every time we upgrade selenium, just like I'm doing now. --- tests/test_webdriver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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):