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

test select() with GenericWaitTestCase

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