mirror of https://github.com/ansible/ansible.git
[stable-2.10] Constrain pexpect and ptyprocess (#73109)
The recent update of ptyprocess to 0.7.0 is incompatible with Python 2.6 and
is causing test failures.
* Add setup_pexpect role to expect test
(cherry picked from commit 003a9e890d
)
Co-authored-by: Sam Doooran <sdoran@redhat.com>
pull/73115/head
parent
8f71aead87
commit
db41f2e384
@ -1,2 +1,3 @@
|
||||
shippable/posix/group2
|
||||
destructive
|
||||
needs/target/setup_pexpect
|
||||
|
@ -0,0 +1,2 @@
|
||||
pexpect == 4.8.0
|
||||
ptyprocess < 0.7.0 ; python_version < '2.7' # ptyprocess >= 0.7.0 not compatible with Python 2.6
|
@ -0,0 +1,2 @@
|
||||
dependencies:
|
||||
- setup_remote_tmp_dir
|
@ -1,4 +1,10 @@
|
||||
- name: Copy constraints file
|
||||
copy:
|
||||
src: constraints.txt
|
||||
dest: "{{ remote_tmp_dir }}/pexpect-constraints.txt"
|
||||
|
||||
- name: Install pexpect
|
||||
pip:
|
||||
name: pexpect
|
||||
extra_args: '--constraint "{{ remote_tmp_dir }}/pexpect-constraints.txt"'
|
||||
state: present
|
||||
|
Loading…
Reference in New Issue