diff --git a/tests/hwsim/test_dbus.py b/tests/hwsim/test_dbus.py index 0ba417f19..43132831d 100644 --- a/tests/hwsim/test_dbus.py +++ b/tests/hwsim/test_dbus.py @@ -5,13 +5,13 @@ # 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: diff --git a/tests/hwsim/test_dbus_old.py b/tests/hwsim/test_dbus_old.py index e677e78c0..8a76636ee 100644 --- a/tests/hwsim/test_dbus_old.py +++ b/tests/hwsim/test_dbus_old.py @@ -4,11 +4,11 @@ # 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: