mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-15 17:40:50 -07:00
Fix expect for python 3 (#24912)
* Fix expect for python 3 - Change generator next to python 3 compatible - Added tests for expect * Add pexpect to integration.txt - add pexpect library to requirements for integration tests * Use ansible_python_interpreter in integration tests for expect * Use double-quotes for expect integration tests * Cast user input to string for expect integration tests * Cast user input to string earlier in expect integration tests * Use ansible.module_utils.six.moves input for expect integration tests * Fix yamllint errors in the expect test * Use cat to trigger timeout for expect integration tests * Use realpath filter in expect integration tests
This commit is contained in:
parent
66355df917
commit
daada2000c
6 changed files with 103 additions and 1 deletions
3
test/integration/targets/expect/files/test_command.py
Normal file
3
test/integration/targets/expect/files/test_command.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from ansible.module_utils.six.moves import input
|
||||
user_input = input('foo')
|
||||
print(user_input)
|
Loading…
Add table
Add a link
Reference in a new issue