Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.rename and other raise WindowsError #49415

Closed
kristjanvalur mannequin opened this issue Feb 6, 2009 · 3 comments
Closed

os.rename and other raise WindowsError #49415

kristjanvalur mannequin opened this issue Feb 6, 2009 · 3 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error

Comments

@kristjanvalur
Copy link
Mannequin

kristjanvalur mannequin commented Feb 6, 2009

BPO 5165
Nosy @kristjanvalur

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 = None
closed_at = <Date 2009-02-06.13:36:40.138>
created_at = <Date 2009-02-06.10:20:33.116>
labels = ['interpreter-core', 'type-bug', 'invalid']
title = 'os.rename and other raise WindowsError'
updated_at = <Date 2009-02-06.13:36:40.137>
user = 'https://github.com/kristjanvalur'

bugs.python.org fields:

activity = <Date 2009-02-06.13:36:40.137>
actor = 'kristjan.jonsson'
assignee = 'none'
closed = True
closed_date = <Date 2009-02-06.13:36:40.138>
closer = 'kristjan.jonsson'
components = ['Interpreter Core']
creation = <Date 2009-02-06.10:20:33.116>
creator = 'kristjan.jonsson'
dependencies = []
files = []
hgrepos = []
issue_num = 5165
keywords = []
message_count = 3.0
messages = ['81256', '81265', '81266']
nosy_count = 2.0
nosy_names = ['kristjan.jonsson', 'mrabarnett']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue5165'
versions = ['Python 2.6', 'Python 2.5', 'Python 3.0', 'Python 3.1', 'Python 2.7']

@kristjanvalur
Copy link
Mannequin Author

kristjanvalur mannequin commented 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.

@kristjanvalur kristjanvalur mannequin added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error labels Feb 6, 2009
@mrabarnett
Copy link
Mannequin

mrabarnett mannequin commented Feb 6, 2009

WindowsError is a subclass of OSError, so it's not entirely
contradictory, just a little misleading... :-)

@kristjanvalur
Copy link
Mannequin Author

kristjanvalur mannequin commented Feb 6, 2009

ah, well, silly me. then I'll just close this as "Invalid".

@kristjanvalur kristjanvalur mannequin closed this as completed Feb 6, 2009
@kristjanvalur kristjanvalur mannequin added the invalid label Feb 6, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs) type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

0 participants