|
|
@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
# 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
|
|
|
|
# issue #555
|
|
|
|
|
|
|
|
|
|
|
|
- name: integration/runner/custom_python_prehistoric_module.yml
|
|
|
|
- name: integration/runner/custom_python_prehistoric_module.yml
|
|
|
@ -5,9 +9,11 @@
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- custom_python_prehistoric_module:
|
|
|
|
- custom_python_prehistoric_module:
|
|
|
|
register: out
|
|
|
|
register: out
|
|
|
|
|
|
|
|
when: is_mitogen
|
|
|
|
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
- assert:
|
|
|
|
that: out.ok
|
|
|
|
that: out.ok
|
|
|
|
fail_msg: out={{out}}
|
|
|
|
fail_msg: out={{out}}
|
|
|
|
|
|
|
|
when: is_mitogen
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- custom_python_prehistoric_module
|
|
|
|
- custom_python_prehistoric_module
|
|
|
|