Commit 2d9f8d73 authored by Denis Bilenko's avatar Denis Bilenko

add regression test for select timeout bug

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