From b30acf5b31ea9c1b5edb0aec2fce4f91a7d892a3 Mon Sep 17 00:00:00 2001 From: Denis Bilenko Date: Wed, 17 Jun 2009 16:30:16 +0700 Subject: [PATCH] timer_test: use hub.switch() instead of hub.run() run should never be called explicitly --- greentest/timer_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greentest/timer_test.py b/greentest/timer_test.py index 6e664d6..2a5b0af 100644 --- a/greentest/timer_test.py +++ b/greentest/timer_test.py @@ -56,7 +56,7 @@ class TestTimer(TestCase): #t.schedule() api.get_hub().schedule_call_global(0, lambda: (called.append(True), hub.abort())) hub.default_sleep = lambda: 0.0 - hub.run() + hub.switch() assert called assert not hub.running