summaryrefslogtreecommitdiffstats
path: root/tests/test_signal.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_signal.py')
-rw-r--r--tests/test_signal.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_signal.py b/tests/test_signal.py
index a2018a9..6312711 100644
--- a/tests/test_signal.py
+++ b/tests/test_signal.py
@@ -257,6 +257,16 @@ class TestClosures(unittest.TestCase):
data = c.emit("my_signal", "\01\00\02")
self.assertEqual(data, "\02\00\01")
+ def _test_bug375589(self):
+ class A:
+ def callback(self, o):
+ o.handler_block_by_func(self.callback)
+
+ e = E()
+ e.connect("signal", A().callback)
+ e.emit('signal')
+ gc.collect()
+
class SigPropClass(gobject.GObject):
__gsignals__ = { 'my_signal': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
(gobject.TYPE_INT,)) }