From aadf5834d27e8a798e4c982c71ef974690911c46 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Thu, 23 Mar 2017 19:22:41 +0100 Subject: [PATCH] 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 --- sahara/tests/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sahara/tests/__init__.py b/sahara/tests/__init__.py index fb9483b..90fe6c0 100644 --- a/sahara/tests/__init__.py +++ b/sahara/tests/__init__.py @@ -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