From 551a38178f7e66f215980fb01200472c8e6d3cd4 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 9 Jan 2006 12:26:46 +0000 Subject: Split out PyGObject from PyGTK. --- tests/test_thread.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test_thread.py') 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() -- cgit