-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New test failures with Python 3.9.0a6 #7161
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
Comments
Thanks @hroncok! We will take a look at this once we can get some version of Python 3.9 running on CI. |
I think the first failure might be "fixed" by an rstrip call, however I haven't really grasped the second one :( |
@nicoddemus we can probably set up either 3.9-tagged ( the first one appears to be testing an implementation detail about the parser (it adds a newline if a file does not add in a newline which is represented in the the second error looks like an actual problem with the line number finding code which probably needs closer attention -- or a bug report on cpython we should also test if these fail with |
here's an example patch of something we could do here: https://github.com/asottile/pytest/commit/3366c4f16c7426b2f186cc72d39394f2d139724a |
Sure thing. We should also make that job an "allowed failure" so the CI doesn't break until 3.9 reaches beta or something like that. Want to try to set this up? 😁 |
github actions doesn't really have a concept of "allowed failures" currently -- (beyond doing it manually with or we could wait a week or two, the first beta lands then |
Fine by me! 👍 |
The CI job aside, it would be really helpful to figure out if the second failure is a bug in CPython before beta, so beta can contain the fix. |
|
ahah ok I figured it out, there was an improvement to |
inspect.getsource improved in Python 3.9 (utilizing the ast and __qualname__) See https://bugs.python.org/issue35113 Resolves pytest-dev#7161
inspect.getsource improved in Python 3.9 (utilizing the ast and __qualname__) See https://bugs.python.org/issue35113 Resolves pytest-dev#7161
Uh oh!
There was an error while loading. Please reload this page.
After upgrading to Python 3.9.0a6, I see 2 new test failures, both in
testing/code/test_source.py
.This is Fedora 32, CPython 3.9.0a6, with
tox -e py39
, master branch @ 80e5098.pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: