From 8a47c5476004181b801ba417f4fe3258555a19f8 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 20 Nov 2014 01:00:50 +0100 Subject: Fix EventLoop.stop(): don't stop immediatly, but schedule stopping the event loop with call_soon() --- tests/test_callback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/test_callback.py b/tests/test_callback.py index 5b306de..1bf30bb 100644 --- a/tests/test_callback.py +++ b/tests/test_callback.py @@ -24,10 +24,10 @@ class CallbackTests(tests.TestCase): self.loop.stop() self.loop.call_soon(hello) - self.loop.call_soon(self.loop.stop) + self.loop.stop() self.loop.call_soon(world) - self.loop.run_forever() + self.loop.run_forever() self.assertEqual(result, ["Hello"]) self.loop.run_forever() -- cgit v1.2.1