You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2009-02-06.13:36:40.138>created_at=<Date2009-02-06.10:20:33.116>labels= ['interpreter-core', 'type-bug', 'invalid']
title='os.rename and other raise WindowsError'updated_at=<Date2009-02-06.13:36:40.137>user='https://github.com/kristjanvalur'
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.
Activity
kristjanvalur commentedon Feb 6, 2009
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.
mrabarnett commentedon Feb 6, 2009
WindowsError is a subclass of OSError, so it's not entirely
contradictory, just a little misleading... :-)
kristjanvalur commentedon Feb 6, 2009
ah, well, silly me. then I'll just close this as "Invalid".