summaryrefslogtreecommitdiff
path: root/tests/steps
diff options
context:
space:
mode:
authorFelix Riemann <friemann@gnome.org>2016-09-03 19:51:38 +0200
committerFelix Riemann <friemann@gnome.org>2016-09-03 19:52:03 +0200
commit6b022222195dc9a4905030829e64e0db57558318 (patch)
tree5ebf315f8f547d2c20d55f41b9b6c6aed28132ce /tests/steps
parente1b215f8926af391dd6f9a57f21e1ae9428686a2 (diff)
downloadeog-6b022222195dc9a4905030829e64e0db57558318.tar.gz
Fix Python 3 incompatibility in installed tests
It's a list in Py2 but an iterator in Py3 now, but it shouldn't make a difference to the for-operator.
Diffstat (limited to 'tests/steps')
-rw-r--r--tests/steps/steps.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/steps/steps.py b/tests/steps/steps.py
index 3470a00c..35549a8e 100644
--- a/tests/steps/steps.py
+++ b/tests/steps/steps.py
@@ -49,7 +49,7 @@ def open_file_via_menu(context, filename):
@then(u'image size is {width:d}x{height:d}')
def image_size_is(context, width, height):
size_text = None
- for attempt in xrange(0, 10):
+ for attempt in range(0, 10):
size_child = context.app.child(roleName='page tab list').child(translate('Size'))
size_text = size_child.parent.children[11].text
if size_text == '':