[issue5165] os.rename and other raise WindowsError
Kristján Valur Jónsson
report at bugs.python.org
Fri Feb 6 11:20:34 CET 2009
New submission from Kristján Valur Jónsson <kristjan at ccpgames.com>:
in lib/test/test_os.py, there is a test class, Win32ErrorTests, that
tests that certain functions return a WindowsError on failure. And
indeed they do that, but that is in contradiction with the
documentation. From the 2.6 docs:
Note
All functions in this module raise OSError in the case of invalid or
inaccessible file names and paths, or other arguments that have the
correct type, but are not accepted by the operating system.
----------
components: Interpreter Core
messages: 81256
nosy: krisvale
severity: normal
status: open
title: os.rename and other raise WindowsError
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5165>
_______________________________________
More information about the Python-bugs-list
mailing list