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

#11857 test on py 3.12rc #11910

Merged
merged 27 commits into from Aug 16, 2023
Merged

#11857 test on py 3.12rc #11910

merged 27 commits into from Aug 16, 2023

Conversation

graingert
Copy link
Member

@graingert graingert commented Aug 16, 2023

Scope and purpose

Fixes #11857 and #11888

@graingert graingert changed the title test on py 3.12 test on py 3.12rc Aug 16, 2023
@graingert graingert changed the title test on py 3.12rc #11857 test on py 3.12rc Aug 16, 2023
@graingert
Copy link
Member Author

@graingert graingert marked this pull request as ready for review August 16, 2023 13:53
@chevah-robot chevah-robot requested a review from a team August 16, 2023 13:53
Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. thanks!

Changes looks good. I hope someone can take a look and review the defered coroutine part.
Or maybe an updated comment can help.

src/twisted/trial/_synctest.py Outdated Show resolved Hide resolved
src/twisted/test/test_task.py Outdated Show resolved Hide resolved
src/twisted/persisted/aot.py Outdated Show resolved Hide resolved
# asyncio.iscoroutine <3.12 identifies generators as coroutines, too.
# for >=3.12 we need to check isgenerator also
# see https://github.com/python/cpython/issues/102748
if iscoroutine(coro) or inspect.isgenerator(coro):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have experince with coroutine.

I don't understand this comment. Sorry

@adiroiban
Copy link
Member

adiroiban commented Aug 16, 2023

I see that the current tests are with 3.12.0-rc.1 ... but the setup is to test with any latest 3.12 . I think that's fine.

And I think that the scope of this PR is not only to get tests on py3.12 , but also a general update of twisted codebase for 3.12 ... for example the deprecationwarning fix

Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not happy with vendoring...but if the plan is to remove aot, it should be fine.

src/twisted/test/test_persisted.py Outdated Show resolved Hide resolved
src/twisted/persisted/_token.py Outdated Show resolved Hide resolved
src/twisted/persisted/_tokenize.py Outdated Show resolved Hide resolved
graingert and others added 9 commits August 16, 2023 16:19
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
Co-authored-by: Adi Roiban <adiroiban@gmail.com>
Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I am happy with the changes.

Not sure about the corouting part, as I don't have experince with that.
but as long as the tests are green, it should be fine.

Many thanks!

@graingert graingert merged commit 9a2ea00 into twisted:trunk Aug 16, 2023
20 of 22 checks passed
@graingert graingert deleted the test-on-3-12 branch August 16, 2023 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable python 3.12 rc on GitHub Actions
3 participants