Skip to content

Commit 9157a9a

Browse files
navin772harsha509AutomatedTester
authored
[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 <[email protected]> Co-authored-by: David Burns <[email protected]>
1 parent a2cacc1 commit 9157a9a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

py/test/selenium/webdriver/common/position_and_size_tests.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,6 @@ def test_should_correctly_identify_that_an_element_has_width_and_height(driver,
109109

110110

111111
def _check_location(location, **kwargs):
112-
try:
113-
# python 2.x
114-
expected = kwargs.viewitems()
115-
actual = location.viewitems()
116-
except AttributeError:
117-
# python 3.x
118-
expected = kwargs.items()
119-
actual = location.items()
112+
expected = kwargs.items()
113+
actual = location.items()
120114
assert expected <= actual

0 commit comments

Comments
 (0)