diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-06 18:25:55 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-01-06 18:25:55 (GMT) |
commit | e85da7aa4f575e9925afafdb332b17e085c4aea1 (patch) | |
tree | 651ce4291e462d432d921dc2d94521519b3f68bd /Modules/posixmodule.c | |
parent | b715fac819fadf56dc8ae0a7769e20ec053baa6d (diff) | |
download | cpython-e85da7aa4f575e9925afafdb332b17e085c4aea1.zip cpython-e85da7aa4f575e9925afafdb332b17e085c4aea1.tar.gz cpython-e85da7aa4f575e9925afafdb332b17e085c4aea1.tar.bz2 |
Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file.
(this does not seem to be easily testable)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 0cd6340..a37efca 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -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; |