Convert test_select to patcher

This commit is contained in:
Ryan Williams
2009-11-26 23:32:43 -05:00
parent c19b8ec24b
commit e36cdaaa7f

View File

@@ -1,11 +1,12 @@
from eventlet import api
api.sleep(0) # initialize the hub
from eventlet import patcher
from eventlet.green import select
import sys
sys.modules['select'] = select
from test.test_select import *
patcher.inject('test.test_select',
globals(),
('select', select))
if __name__ == "__main__":
try:
test_main()