summaryrefslogtreecommitdiffstats
path: root/tests/test_thread.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_thread.py')
-rw-r--r--tests/test_thread.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_thread.py b/tests/test_thread.py
index f1ec01a..9f77f0b 100644
--- a/tests/test_thread.py
+++ b/tests/test_thread.py
@@ -1,8 +1,9 @@
import os
import unittest
-from common import gobject, testhelper
-main = gobject.MainLoop()
+from common import glib, testhelper
+
+main = glib.MainLoop()
class TestThread(unittest.TestCase):
def from_thread_cb(self, test, enum):
@@ -16,8 +17,8 @@ class TestThread(unittest.TestCase):
self.obj.emit('emit-signal')
def testExtensionModule(self):
- gobject.idle_add(self.idle_cb)
- gobject.timeout_add(50, self.timeout_cb)
+ glib.idle_add(self.idle_cb)
+ glib.timeout_add(50, self.timeout_cb)
main.run()
def timeout_cb(self):