Issue #7858: Raise an error properly when os.utime() fails under Windows

on an existing file.

(this does not seem to be easily testable)
This commit is contained in:
Antoine Pitrou 2011-01-06 18:25:55 +00:00
parent b715fac819
commit e85da7aa4f
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,9 @@ Core and Builtins
Library
-------
- Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file.
- Issue #3839: wsgiref should not override a Content-Length header set by
the application. Initial patch by Clovis Fabricio.

View File

@ -3256,6 +3256,7 @@ posix_utime(PyObject *self, PyObject *args)
something is wrong with the file, when it also
could be the time stamp that gives a problem. */
win32_error("utime", NULL);
goto done;
}
Py_INCREF(Py_None);
result = Py_None;