diff --git a/neutron/tests/__init__.py b/neutron/tests/__init__.py index 1850daaffa3..e69de29bb2d 100644 --- a/neutron/tests/__init__.py +++ b/neutron/tests/__init__.py @@ -1,15 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); you may -# not use this file except in compliance with the License. You may obtain -# a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT -# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the -# License for the specific language governing permissions and limitations -# under the License. - -from neutron.common import eventlet_utils - -eventlet_utils.monkey_patch() diff --git a/neutron/tests/common/__init__.py b/neutron/tests/common/__init__.py index e69de29bb2d..5c53d882294 100644 --- a/neutron/tests/common/__init__.py +++ b/neutron/tests/common/__init__.py @@ -0,0 +1,16 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +from neutron.common import eventlet_utils + + +eventlet_utils.monkey_patch() diff --git a/neutron/tests/fullstack/__init__.py b/neutron/tests/fullstack/__init__.py index e69de29bb2d..5c53d882294 100644 --- a/neutron/tests/fullstack/__init__.py +++ b/neutron/tests/fullstack/__init__.py @@ -0,0 +1,16 @@ +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +from neutron.common import eventlet_utils + + +eventlet_utils.monkey_patch() diff --git a/neutron/tests/functional/__init__.py b/neutron/tests/functional/__init__.py index a2a87e23b26..b66ed9e38b3 100644 --- a/neutron/tests/functional/__init__.py +++ b/neutron/tests/functional/__init__.py @@ -20,6 +20,11 @@ discovery. import os.path +from neutron.common import eventlet_utils + + +eventlet_utils.monkey_patch() + def load_tests(loader, tests, pattern): this_dir = os.path.dirname(__file__) diff --git a/neutron/tests/unit/__init__.py b/neutron/tests/unit/__init__.py index faed26a532b..b6e11d08343 100644 --- a/neutron/tests/unit/__init__.py +++ b/neutron/tests/unit/__init__.py @@ -15,5 +15,10 @@ from oslo_config import cfg +from neutron.common import eventlet_utils + cfg.CONF.use_stderr = False + + +eventlet_utils.monkey_patch()