brent saner added the comment:
i have found a workaround- it seems that if i add a "sleep 2" in the expect
script before and after the getpass() entry prompt points, it works. which
doesn't make sense to me, considering the getpass() prompt seems to take just
as long as the other prompts to re
brent saner added the comment:
NOTE: the example scripts given are for py3k, obviously. these should work (or
rather, "not work") for 2.
of course, you'll also have to mark the poc.py as executable as well for both.
--
Added file: http://bugs.python.org/file46862/expect-getpass2.poc.ta
New submission from brent saner:
This is reproducible on both 2.7.13 and 3.6.1.
Please refer to the attached files for demonstration. It seems that when I
spawn a python script using getpass.getpass() from expect
(http://expect.sourceforge.net/ - I'm using version 5.45), the input is not
pass