diff options
author | hut <hut@lavabit.com> | 2010-03-30 19:55:17 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-03-30 19:55:17 +0200 |
commit | da0771094b1a1e10c70e9e359296ae105b7f6ea2 (patch) | |
tree | 4440c1f9fbde9e4fdad29764a6c9117cfbded989 /test/tc_signal.py | |
parent | 9b83f1144024c98cad6ece752b7e625bfec608f2 (diff) | |
download | ranger-da0771094b1a1e10c70e9e359296ae105b7f6ea2.tar.gz |
ext.signal_dispatcher: fixed weak refs to bound methods
Diffstat (limited to 'test/tc_signal.py')
-rw-r--r-- | test/tc_signal.py | 7 |
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]) |