diff --git a/py/test/selenium/webdriver/common/position_and_size_tests.py b/py/test/selenium/webdriver/common/position_and_size_tests.py index 7ef1334a7a0f3..a438c0f5e0c88 100644 --- a/py/test/selenium/webdriver/common/position_and_size_tests.py +++ b/py/test/selenium/webdriver/common/position_and_size_tests.py @@ -109,12 +109,6 @@ def test_should_correctly_identify_that_an_element_has_width_and_height(driver, def _check_location(location, **kwargs): - try: - # python 2.x - expected = kwargs.viewitems() - actual = location.viewitems() - except AttributeError: - # python 3.x - expected = kwargs.items() - actual = location.items() + expected = kwargs.items() + actual = location.items() assert expected <= actual