Apply monkeypatching from eventlet before the tests starts

This should prevent issues with classes which may not have been
otherwise instrumented (and sahara_engine and sahara_all do the
instrumentation at the beginning anyway).

Issues have been notices with eventlet 0.20.1 which now instruments
subprocess.

Change-Id: I17adb877483dbf0b0aa559029c61715d1cef9d7b
This commit is contained in:
Luigi Toscano 2017-03-23 19:22:41 +01:00
parent 5712d98e1c
commit 753b2b6d04
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from sahara.utils import patches
patches.patch_all()
import oslo_i18n
# NOTE(slukjanov): i18n.enable_lazy() must be called before