]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
#18116: backport fix to 3.3 since real-world failure mode demonstrated.
authorR David Murray <rdmurray@bitdance.com>
Fri, 27 Dec 2013 16:24:32 +0000 (11:24 -0500)
committerR David Murray <rdmurray@bitdance.com>
Fri, 27 Dec 2013 16:24:32 +0000 (11:24 -0500)
commitecff5e51a5c65037103c23c937a02184050b7117
treefa5bf717b4756d992b8205852f40055d6f635833
parent5eb01530b2bfba81b09e5129caabeada2d8dc487
#18116: backport fix to 3.3 since real-world failure mode demonstrated.

In issue 20074 it was pointed out that getpass would fail with a traceback if
stdin was, for example /dev/null, which is a non-unlikely scenario.

Also backported the tests from issue 17484 as modified by issue 18116.

(What I really did was copy getpass.py and test_getpass.py from their
state on tip as of 17bd04fbf3d3).
Lib/getpass.py
Lib/test/test_getpass.py [new file with mode: 0644]
Lib/test/test_sundry.py
Misc/NEWS