Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/azure-280-35'
Browse files Browse the repository at this point in the history
* origin/azure-280-35:
  issue #590: include nasty workaround for sys.modules junk
  azure: try enabling Ansible 2.8/Py3.5 job
  • Loading branch information
dw committed May 30, 2019
2 parents 6f4cbc1 + 1a92995 commit d71d0ea
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ jobs:
#DISTROS: debian
#STRATEGY: linear

Vanilla_280_27:
Ansible_280_27:
python.version: '2.7'
MODE: ansible
VER: 2.8.0
DISTROS: debian

Ansible_280_35:
python.version: '3.5'
MODE: ansible
VER: 2.8.0
DISTROS: debian
7 changes: 6 additions & 1 deletion ansible_mitogen/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,12 @@ def _setup_imports(self):
for fullname, _, _ in self.module_map['custom']:
mitogen.core.import_module(fullname)
for fullname in self.module_map['builtin']:
mitogen.core.import_module(fullname)
try:
mitogen.core.import_module(fullname)
except ImportError:
# TODO: this is a huge hack to work around issue #590.
if fullname != 'ansible.module_utils.distro._distro':
raise

def _setup_excepthook(self):
"""
Expand Down

0 comments on commit d71d0ea

Please sign in to comment.