OSDN Git Service

test: Python import cleanup
authorPetri Gynther <pgynther@google.com>
Sat, 18 Jan 2014 01:45:07 +0000 (17:45 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 18 Jan 2014 08:38:39 +0000 (00:38 -0800)
commit7adf8d09b4ba060ecb223e36fd6678aa52ab0af1
treee31bb33a1ccf5460c74ce7fb48bc7c03a04401d0
parentd715a2ee3ccf4b9f915b16cb138bfdabe4858581
test: Python import cleanup

Some test scripts use "from gi.repository import GObject" whereas others
use "import gobject". gi.repository is not always available on embedded
systems, so convert all instances to this format:

try:
  from gi.repository import GObject
except ImportError:
  import gobject as GObject

Also, sort the imports in this order: system, dbus, gobject, bluezutils
24 files changed:
test/ftp-client
test/map-client
test/monitor-bluetooth
test/opp-client
test/pbap-client
test/simple-agent
test/simple-endpoint
test/simple-obex-agent
test/simple-player
test/test-adapter
test/test-alert
test/test-cyclingspeed
test/test-device
test/test-discovery
test/test-health
test/test-health-sink
test/test-heartrate
test/test-hfp
test/test-manager
test/test-nap
test/test-network
test/test-profile
test/test-proximity
test/test-thermometer