summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-03-30 19:55:17 +0200
committerhut <hut@lavabit.com>2010-03-30 19:55:17 +0200
commitda0771094b1a1e10c70e9e359296ae105b7f6ea2 (patch)
tree4440c1f9fbde9e4fdad29764a6c9117cfbded989 /test
parent9b83f1144024c98cad6ece752b7e625bfec608f2 (diff)
downloadranger-da0771094b1a1e10c70e9e359296ae105b7f6ea2.tar.gz
ext.signal_dispatcher: fixed weak refs to bound methods
Diffstat (limited to 'test')
-rw-r--r--test/tc_signal.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/tc_signal.py b/test/tc_signal.py
index 639cf7c3..ad04beab 100644
--- a/test/tc_signal.py
+++ b/test/tc_signal.py
@@ -119,13 +119,16 @@ class TestSignal(unittest.TestCase):
 
 		self.assertEqual('a', ''.join(alphabet))
 		sd.signal_bind('mysignal', foo.calc, weak=True)
-		del foo
+		print("jambo")
 
 		sd.signal_emit('mysignal')
 		self.assertEqual('ab', ''.join(alphabet))
 		self.assertFalse(is_deleted[0])
 
-		del calc
+		del foo
+
+		sd.signal_emit('mysignal')
+		self.assertEqual('ab', ''.join(alphabet))
 		self.assertTrue(is_deleted[0])