コード例 #1
0
ファイル: test_emulation.py プロジェクト: felinx/greenhouse
 def setUp(self):
     super(GreenSelectMixin, self).setUp()
     poller.set(self.POLLER())
コード例 #2
0
ファイル: __init__.py プロジェクト: felinx/greenhouse
from __future__ import absolute_import

from greenhouse.compat import *
from greenhouse.scheduler import *
from greenhouse.util import *
from greenhouse.pool import *

# scheduler.state.poller needs to be in place before the io import
from greenhouse import poller
poller.set()

from greenhouse.io import *
from greenhouse.emulation import *
from greenhouse.backdoor import *


VERSION = (1, 0, 0, '')

__version__ = ".".join(filter(None, (str(x) for x in VERSION)))

# prime the pump. if there is a traceback before the mainloop greenlet
# has a chance to get into its 'try' block, the mainloop will die of that
# traceback and it will wind up being raised in the main greenlet
@schedule
def f():
    pass
pause()
del f