Commit 28c1985a authored by Denis Bilenko's avatar Denis Bilenko

test__api.py: do not depend on core

parent f5f0701f
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import greentest import greentest
import gevent import gevent
from gevent import core, util, socket from gevent import util, socket
DELAY = 0.1 DELAY = 0.1
...@@ -87,7 +87,7 @@ class TestTimers(greentest.TestCase): ...@@ -87,7 +87,7 @@ class TestTimers(greentest.TestCase):
def test_timer_fired(self): def test_timer_fired(self):
def func(): def func():
core.timer(0.01, self.lst.pop) gevent.spawn_later(0.01, lst.pop)
gevent.sleep(0.02) gevent.sleep(0.02)
gevent.spawn(func) gevent.spawn(func)
......
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