Issue1755

classification
Title: os.utime('/tmp/nonexistent-file', None) fails to raise OSError
Type: Severity: normal
Components: Core Versions: 2.5.2rc
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pjenvey Nosy List: dstromberg, pjenvey
Priority: Keywords:

Created on 2011-06-04.22:10:13 by dstromberg, last changed 2011-06-05.01:04:12 by pjenvey.

Messages
msg6541 (view) Author: Dan Stromberg (dstromberg) Date: 2011-06-04.22:10:12
The title pretty much says it.

Supporting detail:

$ for i in /usr/local/*/bin/python /usr/local/*/bin/pypy /usr/local/*/bin/jython; do echo $i; $i -c 'import os; os.utime("/tmp/nonexistent-file", None)'; echo; done
/usr/local/cpython-2.5/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/cpython-2.6/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/cpython-2.7/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/cpython-3.0/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/cpython-3.1/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/cpython-3.2/bin/python
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/pypy-1.5/bin/pypy
Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "app_main.py", line 526, in run_it
  File "<string>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/tmp/nonexistent-file'

/usr/local/jython-2.5.2/bin/jython

/usr/local/jython-2.5.2-r7288/bin/jython
msg6542 (view) Author: Philip Jenvey (pjenvey) Date: 2011-06-05.01:04:12
fixed in d75393f1eb8d & f9bc8cd4da8f
History
Date User Action Args
2011-06-05 01:04:12pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg6542
2011-06-05 00:49:08pjenveysetassignee: pjenvey
nosy: + pjenvey
2011-06-04 22:10:13dstrombergcreate