diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 01:00:50 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 01:00:50 +0100 |
commit | 8a47c5476004181b801ba417f4fe3258555a19f8 (patch) | |
tree | 5da2c9117d710d9f6a6a969fd4060e90843babb4 /tests | |
parent | 35a1d05b171d8b10296457de7a8d252993616f41 (diff) | |
download | aioeventlet-8a47c5476004181b801ba417f4fe3258555a19f8.tar.gz |
Fix EventLoop.stop(): don't stop immediatly, but schedule stopping the event
loop with call_soon()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_callback.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |