pygobject r799 - in trunk: . gobject tests
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: pygobject r799 - in trunk: . gobject tests
- Date: Mon, 14 Jul 2008 21:35:17 +0000 (UTC)
Author: johan
Date: Mon Jul 14 21:35:17 2008
New Revision: 799
URL: http://svn.gnome.org/viewvc/pygobject?rev=799&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/gobject/pygsource.c
trunk/tests/test_source.py
Modified: trunk/gobject/pygsource.c
==============================================================================
--- trunk/gobject/pygsource.c (original)
+++ trunk/gobject/pygsource.c Mon Jul 14 21:35:17 2008
@@ -651,8 +651,7 @@
(getattrofunc)0, /* tp_getattro */
(setattrofunc)0, /* tp_setattro */
0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
- Py_TPFLAGS_HAVE_GC, /* tp_flags */
+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
NULL, /* tp_doc */
(traverseproc)0, /* tp_traverse */
(inquiry)0, /* tp_clear */
@@ -728,8 +727,7 @@
(getattrofunc)0, /* tp_getattro */
(setattrofunc)0, /* tp_setattro */
0, /* tp_as_buffer */
- Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
- Py_TPFLAGS_HAVE_GC, /* tp_flags */
+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
NULL, /* tp_doc */
(traverseproc)0, /* tp_traverse */
(inquiry)0, /* tp_clear */
Modified: trunk/tests/test_source.py
==============================================================================
--- trunk/tests/test_source.py (original)
+++ trunk/tests/test_source.py Mon Jul 14 21:35:17 2008
@@ -90,5 +90,12 @@
assert dispatched[0]
+
+class TestTimeout(unittest.TestCase):
+ def test504337(self):
+ timeout_source = gobject.Timeout(20)
+ idle_source = gobject.Idle()
+
+
if __name__ == '__main__':
unittest.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]