Commit 0b965836 authored by Denis Bilenko's avatar Denis Bilenko

test select() with GenericWaitTestCase

parent e7a3fb99
......@@ -3,13 +3,10 @@ from gevent import select
import greentest
class TestSelect(greentest.TestCase):
class TestSelect(greentest.GenericWaitTestCase):
def test_timeout(self):
start = time()
select.select([], [], [], 0.1)
delay = time() - start
assert 0.1 - 0.02 < delay < 0.1 + 0.02, delay
def wait(self, timeout):
select.select([], [], [], timeout)
if __name__=='__main__':
......
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