File: custom_python_prehistoric_module.yml

package info (click to toggle)
python-mitogen 0.3.26-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,456 kB
  • sloc: python: 22,134; sh: 183; makefile: 74; perl: 19; ansic: 18
file content (21 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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