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
Python 3.11rc2 support #1908
Merged
Merged
Python 3.11rc2 support #1908
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-Authored-By: Petr Viktorin <encukou@gmail.com>
Leaving some notes about needed cleanup. This first push is just to make sure all the other versions besides 3.11 continue to do their thing.
All tests pass locally on 3.10 except one, reported earlier: test_no_refcycle_through_target (gevent.tests.test__threading_2.ThreadTests) And a new one that is similar: test_no_refcycle_through_target (__main__.ThreadTests) I haven't tried to debug that yet.
…ests that failed.
…hat we see there. Haven't tried any of the 3.11-specific tests yet.
… Python 2 in no-embed mode.
Exiting when idle is because 3.11's test_socket.BasicTCPTest.testDetach() was always failing complaining about a leaked thread. Turns out this thread was from the default threadpool used for DNS resolution. Something must have changed to cause the first DNS resolution to occur during that test, and hence the first thread to be spawned. This is opt-in for all thread pools, with the default thread pool opting in by default; but a config setting allows that to be changed. Most 3.11 tests pass, except for some in test_subprocess where new functionality was added.
This should fix the refleaks in general (it was a frame object that was leaking). Submitting to CI for broad test, and if it is good then we will try backing out the test__util changes too. Also make it possible for gevent.config to show help.
…the tree format tests on mac. subprocess needed a new check added to check_output, and needed process_group implemented. because all the leakcheck tests finished successfully after the last commit, and because it sure looks like a refcounting issues in the tree formatting tests (leaked greenlets causing the numbering to be off), try enabling them for this run. fixes #1872 refs #1867
…ave it. Fixes #1863 Contributed-By: mgorny
…ize. By simply not typing it at the Cython level at all. No need since we're directing through functions now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on #1872 with the following updates:
I'd like to take a crack at fixing the rest of the warnings from Cython about
DEF
, but that'll probably be separate.