summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pyatspi/accessibletest.py5
-rw-r--r--tests/pyatspi/componenttest.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/pyatspi/accessibletest.py b/tests/pyatspi/accessibletest.py
index d94e0af..6cd2cdd 100644
--- a/tests/pyatspi/accessibletest.py
+++ b/tests/pyatspi/accessibletest.py
@@ -110,9 +110,10 @@ class AccessibleTest(_PasyTest):
root = self._desktop.getChildAtIndex(0)
attr = root.getAttributes()
res = ["foo:bar", "baz:qux", "quux:corge"]
+ attr.sort()
+ res.sort()
test.assertEqual(attr, res, "Attributes expected %s, recieved %s" % (attr, res))
-
def test_parent(self, test):
root = self._desktop.getChildAtIndex(0)
@@ -151,7 +152,7 @@ class AccessibleTest(_PasyTest):
def test_getRole(self, test):
root = self._desktop.getChildAtIndex(0)
test.assertEqual(root.getRole(), 69,
- "Expected role - \"69\". Recieved - \"%d\"" % (root.getRole(),))
+ "Expected role - \"69\". Recieved - \"%d\"" % (int(root.getRole()),))
def test_getRoleName(self, test):
root = self._desktop.getChildAtIndex(0)
diff --git a/tests/pyatspi/componenttest.py b/tests/pyatspi/componenttest.py
index c6a9253..fe30c88 100644
--- a/tests/pyatspi/componenttest.py
+++ b/tests/pyatspi/componenttest.py
@@ -113,7 +113,7 @@ class ComponentTest(_PasyTest):
layer = comp.getLayer()
test.assertEqual(layer, expected,
"Layer not correct. Expected %d, Recieved %d"
- % (layer, expected))
+ % (int(layer), int(expected)))
def test_getMDIZOrder(self, test):
root = self._desktop.getChildAtIndex(0)