mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pip tests: skip distribute test case for py3 compat (#49636)
This commit is contained in:
parent
198f1e1bea
commit
28a903a1e2
1 changed files with 22 additions and 19 deletions
|
@ -501,25 +501,28 @@
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
# https://github.com/ansible/ansible/issues/47198
|
# https://github.com/ansible/ansible/issues/47198
|
||||||
- name: make sure the virtualenv does not exist
|
# distribute is a legacy package that will fail on newer Python 3 versions
|
||||||
file:
|
- block:
|
||||||
state: absent
|
- name: make sure the virtualenv does not exist
|
||||||
name: "{{ output_dir }}/pipenv"
|
file:
|
||||||
|
state: absent
|
||||||
|
name: "{{ output_dir }}/pipenv"
|
||||||
|
|
||||||
- name: install distribute in the virtualenv
|
- name: install distribute in the virtualenv
|
||||||
pip:
|
pip:
|
||||||
name: distribute
|
name: distribute
|
||||||
virtualenv: "{{ output_dir }}/pipenv"
|
virtualenv: "{{ output_dir }}/pipenv"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: try to remove distribute
|
- name: try to remove distribute
|
||||||
pip:
|
pip:
|
||||||
state: "absent"
|
state: "absent"
|
||||||
name: "distribute"
|
name: "distribute"
|
||||||
virtualenv: "{{ output_dir }}/pipenv"
|
virtualenv: "{{ output_dir }}/pipenv"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
register: remove_distribute
|
register: remove_distribute
|
||||||
|
|
||||||
- name: inspect the cmd
|
- name: inspect the cmd
|
||||||
assert:
|
assert:
|
||||||
that: "'distribute' in remove_distribute.cmd"
|
that: "'distribute' in remove_distribute.cmd"
|
||||||
|
when: ansible_python.version.major == 2
|
||||||
|
|
Loading…
Reference in a new issue