Skip to content

Commit e59dc26

Browse files
committed
[py] remove python 2.x support from py test
1 parent 1cb7c2a commit e59dc26

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

Lines changed: 2 additions & 8 deletions
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)