Serhiy Storchaka added the comment: Here is a patch which fixes getpass bug: unix_getpass() always fallback to sys.stdin. As side effect it also fixes resource warning in getpass().
I'm not sure I have correctly changed tests. David, could you please review the patch? ---------- nosy: +gregory.p.smith, r.david.murray stage: -> patch review title: getpass.getpass() triggers ResourceWarning -> getpass.unix_getpass() always fallback to sys.stdin type: resource usage -> behavior Added file: http://bugs.python.org/file30495/getpass_tty.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18116> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com