diff options
Diffstat (limited to 'tests/test_thread.py')
-rw-r--r-- | tests/test_thread.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_thread.py b/tests/test_thread.py index 647783a..231930f 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -1,7 +1,8 @@ import os import unittest -from common import gobject, gtk, testhelper +from common import gobject, testhelper +main = gobject.MainLoop() class TestThread(unittest.TestCase): def from_thread_cb(self, test, enum): @@ -17,7 +18,7 @@ class TestThread(unittest.TestCase): def testExtensionModule(self): gobject.idle_add(self.idle_cb) gobject.timeout_add(50, self.timeout_cb) - gtk.main() + main.run() def timeout_cb(self): - gtk.main_quit() + main.quit() |