diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:46:30 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:46:33 +0900 |
commit | dca4e6423c560689ee831785473ad3ab48e7548a (patch) | |
tree | 048ddb6edb0826be8ff180c027d45acb6dac67db /tests/test_thread.py | |
parent | 392945d666d2cfb31a844826a72b1eb65a52546f (diff) | |
download | pygobject2-dca4e6423c560689ee831785473ad3ab48e7548a.tar.gz pygobject2-dca4e6423c560689ee831785473ad3ab48e7548a.tar.bz2 pygobject2-dca4e6423c560689ee831785473ad3ab48e7548a.zip |
Imported Upstream version 3.3.1
Change-Id: I7e59d7cf82217b545ec40115122a83ebf79763cb
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'tests/test_thread.py')
-rw-r--r-- | tests/test_thread.py | 8 |
1 files changed, 2 insertions, 6 deletions
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() |