You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Test functionality of ansible_mitogen.runner.PREHISTORIC_HACK_RE, which
|
|
|
|
# removes `reload(sys); sys.setdefaultencoding(...)` from an Ansible module
|
|
|
|
# as it is sent to a target. There are probably very few modules in the wild
|
|
|
|
# that still do this, if any - reload() is a Python 2.x builtin function.
|
|
|
|
# issue #555
|
|
|
|
|
|
|
|
- name: integration/runner/custom_python_prehistoric_module.yml
|
|
|
|
hosts: test-targets
|
|
|
|
tasks:
|
|
|
|
- include_tasks: ../_mitogen_only.yml
|
|
|
|
|
|
|
|
- custom_python_prehistoric_module:
|
|
|
|
register: out
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that: out.ok
|
|
|
|
fail_msg: out={{out}}
|
|
|
|
tags:
|
|
|
|
- custom_python_prehistoric_module
|
|
|
|
- mitogen_only
|