diff options
| author | Stephen M. Webb <stephen.webb@canonical.com> | 2014-11-27 09:53:11 -0500 |
|---|---|---|
| committer | Stephen M. Webb <stephen.webb@canonical.com> | 2014-11-27 09:53:11 -0500 |
| commit | 5c8db9df8082e8fa4ee991a5777392bf5bd440cf (patch) | |
| tree | 46e0e2dec4235609764c842c98d3fcf9c034209a /tests/autopilot | |
| parent | 349a6b9030a3643e578858e4c7cbbe0b94bc79d0 (diff) | |
Gnome keygrabber AP test: switch to GI from static glib
Fixes LP: #1397006 (bzr r3884.7.1)
Diffstat (limited to 'tests/autopilot')
| -rw-r--r-- | tests/autopilot/unity/tests/test_gnome_key_grabber.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/autopilot/unity/tests/test_gnome_key_grabber.py b/tests/autopilot/unity/tests/test_gnome_key_grabber.py index 559c8d7b9..29797fd9b 100644 --- a/tests/autopilot/unity/tests/test_gnome_key_grabber.py +++ b/tests/autopilot/unity/tests/test_gnome_key_grabber.py @@ -7,11 +7,11 @@ # by the Free Software Foundation. import dbus -import glib import unity import logging from autopilot.matchers import * +from gi.repository import GLib from testtools.matchers import * log = logging.getLogger(__name__) @@ -64,13 +64,13 @@ class GnomeKeyGrabberTests(unity.tests.UnityTestCase): log.info("pressing '%s'" % accelerator.shortcut) self.keyboard.press_and_release(accelerator.shortcut) - loop = glib.MainLoop() + loop = GLib.MainLoop() def wait(): loop.quit() return False - glib.timeout_add_seconds(1, wait) + GLib.timeout_add_seconds(1, wait) loop.run() return self.activated[0] |
