Invoke monkey_patching early enough for eventlet 0.20.1

eventlet 0.20.x is monkey patching also subprocess, so we need
to establish patching early enough for functional tests

Closes-Bug: #1655727
Change-Id: I4de03e2a1ca493cd49a474a67cbbdec24d61b98f
This commit is contained in:
Dirk Mueller 2017-01-11 19:02:52 +01:00 committed by Steve Lewis
parent 7580d817da
commit f07c7cff61
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import sys
import tempfile
import time
import eventlet
import fixtures
from oslo_serialization import jsonutils
# NOTE(jokke): simplified transition to py3, behaves like py2 xrange
@ -49,6 +50,8 @@ from glance.tests import utils as test_utils
execute, get_unused_port = test_utils.execute, test_utils.get_unused_port
tracecmd_osmap = {'Linux': 'strace', 'FreeBSD': 'truss'}
eventlet.patcher.monkey_patch()
class Server(object):
"""