Serhiy Storchaka added the comment:

The problem is in io.open, not in getpass. Here is a test script.

$ ./python buffered_open_fd_leak.py 
buffered_open_fd_leak.py:7: ResourceWarning: unclosed file <_io.FileIO name=3 
mode='rb+'>
  tty = io.open(fd, 'w+', 1)

----------
versions: +Python 3.4
Added file: http://bugs.python.org/file30482/buffered_open_fd_leak.py

_______________________________________
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

Reply via email to