diff options
Diffstat (limited to 'tests/probetests.py')
-rw-r--r-- | tests/probetests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/probetests.py b/tests/probetests.py index 3a55f82..a440334 100644 --- a/tests/probetests.py +++ b/tests/probetests.py @@ -24,6 +24,7 @@ import gtk import time from dbus.mainloop.glib import DBusGMainLoop +import dbus from sugar.tutorius.TProbe import TProbe, ProbeProxy @@ -45,8 +46,9 @@ class FakeActivity(object): class ProbeTest(unittest.TestCase): def test_ping(self): - pid = os.fork() m = DBusGMainLoop(set_as_default=True) + dbus.set_default_main_loop(m) + activity = FakeActivity() probe = TProbe("localhost.unittest.ProbeTest", activity.top) |