summaryrefslogtreecommitdiffstats
path: root/test/test-advice-of-charge
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2014-03-11 17:39:21 +0100
committerDenis Kenzior <denkenz@gmail.com>2014-03-11 19:33:16 -0500
commitad4f90684fac01be21789df40882fb9869c3cd41 (patch)
tree175888fc4f175c0ee7d673c9a30d3dc802a1ca0c /test/test-advice-of-charge
parent5bf5cf8ddd83f632aa85ddbdc6c2dec075854e75 (diff)
downloadofono-ad4f90684fac01be21789df40882fb9869c3cd41.tar.bz2
test: Move from static gobject bindings to GI
Use GLib gobject-introspection bindings so that we can also use the scripts with Python 3.
Diffstat (limited to 'test/test-advice-of-charge')
-rwxr-xr-xtest/test-advice-of-charge4
1 files changed, 2 insertions, 2 deletions
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()