diff options
Diffstat (limited to 'tests/test_callback.py')
-rw-r--r-- | tests/test_callback.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_callback.py b/tests/test_callback.py index 58f787b..fb29528 100644 --- a/tests/test_callback.py +++ b/tests/test_callback.py @@ -32,6 +32,16 @@ class CallbackTests(tests.TestCase): self.loop.run_forever() self.assertEqual(result, ["Hello", "World"]) + def test_close_soon(self): + def func(): + pass + + self.loop.close() + # FIXME: calling call_soon() on a closed event loop should raise an + # exception: + # http://bugs.python.org/issue22922 + self.loop.call_soon(func) + if __name__ == '__main__': import unittest |