From dca4e6423c560689ee831785473ad3ab48e7548a Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Wed, 12 Jul 2017 08:46:30 +0900 Subject: Imported Upstream version 3.3.1 Change-Id: I7e59d7cf82217b545ec40115122a83ebf79763cb Signed-off-by: DongHun Kwak --- tests/test_thread.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/test_thread.py') diff --git a/tests/test_thread.py b/tests/test_thread.py index 3da3310..b707bc4 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -9,25 +9,21 @@ from gi.repository import GLib class TestThread(unittest.TestCase): def setUp(self): self.main = GLib.MainLoop() - self.called = False def from_thread_cb(self, test, enum): assert test == self.obj assert int(enum) == 0 assert type(enum) != int - self.called = True - GLib.idle_add(self.timeout_cb) def idle_cb(self): self.obj = testhelper.get_test_thread() self.obj.connect('from-thread', self.from_thread_cb) self.obj.emit('emit-signal') - def test_extension_module(self): + def testExtensionModule(self): GLib.idle_add(self.idle_cb) - GLib.timeout_add(2000, self.timeout_cb) + GLib.timeout_add(50, self.timeout_cb) self.main.run() - self.assertTrue(self.called) def timeout_cb(self): self.main.quit() -- cgit v1.2.3