diff options
| author | Joshua Harlow <harlowja@gmail.com> | 2015-01-11 00:15:09 -0800 |
|---|---|---|
| committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2015-01-16 11:51:04 -0800 |
| commit | d92c226fe2d4a4fc402b96354da29dcc22a25574 (patch) | |
| tree | 9a3ef9bcb686784dfda8bb1e1fb8c95ef8169b46 /taskflow/tests/unit/test_utils_async_utils.py | |
| parent | 320955672dafe531533971f4a77fcdae5a7f5a8c (diff) | |
| download | taskflow-d92c226fe2d4a4fc402b96354da29dcc22a25574.tar.gz | |
Add back a 'eventlet_utils' helper utility module
Recreate a very simple eventlet utility module that
has only a few features; one function checks if eventlet is
available and if not raise an exception; and a constant that
can be used by calling code (such as tests or other optional
functionality) to check if eventlet is useable before
proceeding.
Change-Id: I32df0702eeae7c7c78972c9796156dd824b2f123
Diffstat (limited to 'taskflow/tests/unit/test_utils_async_utils.py')
| -rw-r--r-- | taskflow/tests/unit/test_utils_async_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/taskflow/tests/unit/test_utils_async_utils.py b/taskflow/tests/unit/test_utils_async_utils.py index 7bb033b..b538c2e 100644 --- a/taskflow/tests/unit/test_utils_async_utils.py +++ b/taskflow/tests/unit/test_utils_async_utils.py @@ -19,6 +19,7 @@ import testtools from taskflow import test from taskflow.types import futures from taskflow.utils import async_utils as au +from taskflow.utils import eventlet_utils as eu class WaitForAnyTestsMixin(object): @@ -52,7 +53,7 @@ class WaitForAnyTestsMixin(object): self.assertIs(done.pop(), f2) -@testtools.skipIf(not au.EVENTLET_AVAILABLE, 'eventlet is not available') +@testtools.skipIf(not eu.EVENTLET_AVAILABLE, 'eventlet is not available') class AsyncUtilsEventletTest(test.TestCase, WaitForAnyTestsMixin): def _make_executor(self, max_workers): |
