[issue15972] wrong error message for os.path.getsize

Christian Heimes report at bugs.python.org
Wed Sep 19 18:27:13 CEST 2012


Christian Heimes added the comment:

Linux:

>>> os.stat([])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: ''
[60996 refs]
>>> os.stat([None])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: an integer is required
[60993 refs]

----------
keywords: +3.3regression
nosy: +christian.heimes

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


More information about the Python-bugs-list mailing list