[New-bugs-announce] [issue18116] getpass.getpass() triggers ResourceWarning

Nikolaus Rath report at bugs.python.org
Sun Jun 2 01:50:07 CEST 2013


New submission from Nikolaus Rath:

[0] nikratio at vostro:~/tmp$ cat bugme.py 
#!python
import getpass
import warnings

warnings.simplefilter('default')
getpass.getpass("What's up?")

[0] nikratio at vostro:~/tmp$ python3 --version
Python 3.3.2

[0] nikratio at vostro:~/tmp$ python3 bugme.py 
/usr/lib/python3.3/os.py:1043: ResourceWarning: unclosed file <_io.FileIO name=3 mode='rb+'>
  return io.open(fd, *args, **kwargs)
What's up?

----------
components: Library (Lib)
messages: 190458
nosy: Nikratio
priority: normal
severity: normal
status: open
title: getpass.getpass() triggers ResourceWarning
type: resource usage
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18116>
_______________________________________


More information about the New-bugs-announce mailing list