Add a work around for test failure under Python 3.6.5.
@@ -59,6 +59,13 @@ def use_select_poll_workaround():
sys.modules['select'] = eventlet.patcher.original('select')
subprocess.select = eventlet.patcher.original('select')
+ if sys.version_info >= (3, 6, 5):
+ # If we also don't patch selectors.select, it will fail with Python >= 3.6.5
+ import selectors
+
+ sys.modules['selectors'] = selectors
+ selectors.select = sys.modules['select']
+
def is_use_debugger_flag_provided():
# 1. Check sys.argv directly
