summaryrefslogtreecommitdiff
path: root/tests
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
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')
-rw-r--r--tests/common_steps.py2
-rw-r--r--tests/steps/steps.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/common_steps.py b/tests/common_steps.py
index cd20cccd..49686550 100644
--- a/tests/common_steps.py
+++ b/tests/common_steps.py
@@ -133,7 +133,7 @@ class App(object):
self.a11yAppName = self.internCommand
# Trap weird bus errors
- for attempt in xrange(0, 10):
+ for attempt in range(0, 10):
try:
return self.a11yAppName in [x.name for x in root.applications()]
except GLib.GError:
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 == '':