It looks like the gobject module does not get installed by default for
Python at least on Ubuntu server, so modify the D-Bus test case files to
import this in a way that allows other test cases to be run even without
gobject module being installed.
Signed-off-by: Jouni Malinen <j@w1.fi>
# See README for more details.
import binascii
-import gobject
import logging
logger = logging.getLogger()
import subprocess
import time
try:
+ import gobject
import dbus
dbus_imported = True
except ImportError:
# This software may be distributed under the terms of the BSD license.
# See README for more details.
-import gobject
import logging
logger = logging.getLogger()
try:
+ import gobject
import dbus
dbus_imported = True
except ImportError: