From 9157a9a684f944433abe4c8a728b08b5e6f6e214 Mon Sep 17 00:00:00 2001 From: Navin Chandra <98466550+navin772@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:15:34 +0530 Subject: [PATCH] [py] remove python 2.x support from py test file (#14504) [py] remove python 2.x support from py test Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com> Co-authored-by: David Burns --- .../webdriver/common/position_and_size_tests.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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