From 22ecc3484780137f6991c07eebdf3692ab9ff107 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Fri, 17 Aug 2018 12:39:04 +0300 Subject: [PATCH] Supporting Chrome/Firefox specific failures --- test/test_python.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_python.py b/test/test_python.py index c79526466..ad0be8572 100644 --- a/test/test_python.py +++ b/test/test_python.py @@ -288,7 +288,10 @@ def test_run_core_python_test(python_test, selenium, request): selenium.load_package('test') name, error_flags = python_test - if error_flags: + driver_name = (selenium.__class__.__name__ + .replace('Wrapper', '').lower()) + if ('crash' in error_flags or + 'crash_' + driver_name in error_flags): request.applymarker(pytest.mark.xfail( run=False, reason='known failure with code "{}"' .format(error_flags)))