-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
Fix Python 3.12 errors #2646
Comments
We can for the moment just suppress that particular DeprecationWarning by adding It also looks like trio/trio/_core/tests/test_run.py Lines 2285 to 2294 in 855f5fd
|
For that one specifically, I've already raised a CPython issue (python/cpython#100964) but I need to investigate and respond, heh. I remember seeing others, though. I suspect it's not worth the effort to ignore the warning as the pytest PR should merge whenever the beta comes out. |
I would love to have a quick patch that silences the 3.12 errors. When actively developing I find it's nice to be able to peek at the PR list and see if tests are failing or not - without having to check the long test list every time. And I also have it set up to get notifications on failing CI tests, which becomes ... not useful. (codecov not handling windows is also at fault here, but that one's at least somewhat possible to work around) |
AFAIU, the current test runner uses a codecov uploader version that's been deprecated 3 years ago: #2650. |
Plz attach a comment to that line explaining when it can be removed, if you do so.. Alternatively, I've been experimenting with adding ignore filters dynamically, like this: https://github.com/cherrypy/cheroot/blob/f82aee6/cheroot/test/_pytest_plugin.py#L22. |
OK now that #2651 is merged, here's a list of failing tests:
Most of the static ones seem solvable by us, by either adding exports or ignoring more deprecation warnings. I'm not so sure about the other ones, let's xfail them after brief investigation into each. |
As of master, it looks like maybe CPython reverted some breaking changes? There's only one error left; the one I already made an issue about! (https://github.com/python-trio/trio/actions/runs/5221533766/jobs/9425911997#step:5:1737) |
Wohoo! Sounds like time for a PR that marks it as |
Sure, feel free to make that PR! |
Now that Python 3.12 is entering its beta releases (as of today, according to PEP 693), there should no longer be any feature additions. This means it's going to be more stable, I hope. So, it's time to start poking at test failures!!
https://github.com/python-trio/trio/actions/runs/5013776086/jobs/8987273168 shows that currently pytest is... broken on Python 3.12. That's inconvenient. We are going to be waiting on pytest-dev/pytest#10981 to merge, I guess! I'll keep this issue updated.
The text was updated successfully, but these errors were encountered: