Commit 1e94acd1 authored by Denis Bilenko's avatar Denis Bilenko

test__core_watcher.py: test that watcher/callback/args can go unref while running a callback

parent b91cbbd9
......@@ -46,6 +46,17 @@ class Test(unittest.TestCase):
loop.run()
self.assertEqual(lst, [()])
io.start(reset, io, lst)
del io
loop.run()
self.assertEqual(lst, [(), 25])
def reset(watcher, lst):
watcher.args = None
watcher.callback = lambda: None
lst.append(25)
if __name__ == '__main__':
unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment