File: issue_154__module_state_leaks.yml

package info (click to toggle)
python-mitogen 0.3.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,708 kB
  • sloc: python: 24,457; sh: 198; makefile: 74; perl: 19; ansic: 18
file content (21 lines) | stat: -rw-r--r-- 558 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
# issue #154: yum_repository module leaks state via a class variable, so it
# must be reinitialized or cleared out somehow on each invocation.

- name: regression/issue_154__module_state_leaks.yml
  hosts: test-targets
  tasks:

  - custom_python_leaky_class_vars:
      name: David
    with_sequence: start=0 end=3
    register: out

  - assert:
      that:
        - out.results[item|int].leak1 == ["David"]
        - out.results[item|int].leak2 == ["David"]
      fail_msg: |
        out={{ out }}
    with_sequence: start=0 end=3
  tags:
    - issue_154