diff options
author | Johan Dahlin <johan@src.gnome.org> | 2006-11-18 12:17:16 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2006-11-18 12:17:16 +0000 |
commit | 83816e8cbf9e24b5f9a2b52bb404961ba53b817b (patch) | |
tree | ffaf58241d3886afe12cdcbf9d26e012445e14b7 /tests/test_signal.py | |
parent | d5c99ec99e7b4f19b3ce533c33988fc81f19fccd (diff) | |
download | pygobject-83816e8cbf9e24b5f9a2b52bb404961ba53b817b.tar.gz pygobject-83816e8cbf9e24b5f9a2b52bb404961ba53b817b.tar.xz pygobject-83816e8cbf9e24b5f9a2b52bb404961ba53b817b.zip |
Add a test for #375589
Diffstat (limited to 'tests/test_signal.py')
-rw-r--r-- | tests/test_signal.py | 10 |
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,)) } |