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
py3: Automatically alias OSError subclasses in exception doctests #25676
Comments
comment:3
pyflakes plugin is not happy.. |
comment:4
Replying to @fchapoton:
Not due to anything related to these changes. If someone will otherwise give a conditional positive review to this ticket I'll make sure the pyflakes warnings get taken care of as a rider to this before it's merged. |
comment:6
Edit remove old comment as it matters only with twisted ways of building error messages. |
comment:7
Why two line break ?
|
comment:8
Huh? |
comment:9
i mean why writing :
rather than
I am not saying it's an important issue (it's not). I just wonder why. |
comment:10
I don't know. My editor is configured to enforce a 79 character line and knows Python syntax (most of the time) so it will bump things onto the next line when it can. |
comment:11
Name the subclass "sc" instead of "subcls" |
comment:12
It's....really okay. |
comment:13
let it be |
Reviewer: Frédéric Chapoton, Vincent Klein |
comment:14
I believe this issue can reasonably be addressed for Sage 8.4. |
Changed branch from u/embray/python3/doctest/oserror-subclasses to |
There are at least a handful of doctests that expect
OSError
to be raised. However, Python 3 added many OSError subclasses that are raised in many common cases instead (e.g.FileNotFoundError
).This patches doctest results to paper over this difference in doctests written against Python 2.
CC: @slel @vinklein
Component: python3
Author: Erik Bray
Branch/Commit:
4fff9a0
Reviewer: Frédéric Chapoton, Vincent Klein
Issue created by migration from https://trac.sagemath.org/ticket/25676
The text was updated successfully, but these errors were encountered: