Skip to content

Commit

Permalink
[py] remove python 2.x support from py test file (#14504)
Browse files Browse the repository at this point in the history
[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 <david.burns@theautomatedtester.co.uk>
  • Loading branch information
3 people authored Oct 4, 2024
1 parent a2cacc1 commit 9157a9a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions py/test/selenium/webdriver/common/position_and_size_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9157a9a

Please sign in to comment.