2009-05-14 Mike Gorse <mgorse@novell.com>
[platform/core/uifw/at-spi2-atk.git] / tests / pyatspi / componenttest.py
index 28a66f3..fe30c88 100644 (file)
@@ -44,7 +44,7 @@ class ComponentTest(_PasyTest):
                self._path = path
 
        def setup(self, test):
-               self._registry = pyatspi.registry.Registry(self._path)
+               self._registry = pyatspi.Registry()
                self._desktop = self._registry.getDesktop(0)
 
        def test_contains(self, test):
@@ -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)