[issue18116] getpass.getpass() triggers ResourceWarning
Serhiy Storchaka
report at bugs.python.org
Thu Jun 6 12:26:00 CEST 2013
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 <report at bugs.python.org>
<http://bugs.python.org/issue18116>
_______________________________________
More information about the Python-bugs-list
mailing list