summaryrefslogtreecommitdiffstats
path: root/tests/test_source.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-14 21:35:17 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-14 21:35:17 +0000
commit62f6bc7ea07cc7240cfc67daf51d2737e7cd514b (patch)
tree04e5cfca64e958dca534f8c3413970a8fd5b45fa /tests/test_source.py
parent816cf86462e0f1395bd9c30c85401d747acbfa64 (diff)
downloadpygobject-62f6bc7ea07cc7240cfc67daf51d2737e7cd514b.tar.gz
pygobject-62f6bc7ea07cc7240cfc67daf51d2737e7cd514b.tar.xz
pygobject-62f6bc7ea07cc7240cfc67daf51d2737e7cd514b.zip
Bug 504337 - crash bug in gobject.Timeout and gobject.Idle
2008-07-14 Johan Dahlin <johan@gnome.org> Bug 504337 - crash bug in gobject.Timeout and gobject.Idle * gobject/pygsource.c: * tests/test_source.py: Fix crash in Timeout and Idle, patch by Bryan Silverthorn. svn path=/trunk/; revision=799
Diffstat (limited to 'tests/test_source.py')
-rw-r--r--tests/test_source.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_source.py b/tests/test_source.py
index fd5f310..8e7e81c 100644
--- a/tests/test_source.py
+++ b/tests/test_source.py
@@ -90,5 +90,12 @@ class TestSource(unittest.TestCase):
assert dispatched[0]
+
+class TestTimeout(unittest.TestCase):
+ def test504337(self):
+ timeout_source = gobject.Timeout(20)
+ idle_source = gobject.Idle()
+
+
if __name__ == '__main__':
unittest.main()