From ad4f90684fac01be21789df40882fb9869c3cd41 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 11 Mar 2014 17:39:21 +0100 Subject: test: Move from static gobject bindings to GI Use GLib gobject-introspection bindings so that we can also use the scripts with Python 3. --- test/test-advice-of-charge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test-advice-of-charge') diff --git a/test/test-advice-of-charge b/test/test-advice-of-charge index 6fa3a7c4..0f1f57ff 100755 --- a/test/test-advice-of-charge +++ b/test/test-advice-of-charge @@ -1,6 +1,6 @@ #!/usr/bin/python -import gobject +from gi.repository import GLib import sys import dbus import dbus.mainloop.glib @@ -83,5 +83,5 @@ if __name__ == "__main__": canexit = True - mainloop = gobject.MainLoop() + mainloop = GLib.MainLoop() mainloop.run() -- cgit v1.2.3