Skip to content

gh-117398: Add datetime C-API type check test for subinterpreters - #119604

Merged
ericsnowcurrently merged 40 commits into
python:mainfrom
neonene:capi_type_check
Jun 13, 2024
Merged

gh-117398: Add datetime C-API type check test for subinterpreters#119604
ericsnowcurrently merged 40 commits into
python:mainfrom
neonene:capi_type_check

Conversation

@neonene

@neoneneneonene commented May 27, 2024

Copy link
Copy Markdown
Contributor

Check if the DateType C-API type matches the datetime.date type on main and shared/isolated subinterpreters.

@ericsnowcurrently Please review if this usage is not invalid.

@ericsnowcurrentlyericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The test makes sense. Thanks for adding it. I have one question.

Comment threadModules/_testmultiphase.c Outdated
@bedevere-app

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@neonene

Copy link
Copy Markdown
ContributorAuthor

I have made the requested changes; please review again.

@bedevere-app

Copy link
Copy Markdown

Thanks for making the requested changes!

@ericsnowcurrently: please review the changes made to this pull request.

@neoneneneonene changed the title gh-117398: Add test for datetime C API type checkgh-117398: Add C-API test for datetime static type checkMay 28, 2024
@ericsnowcurrently

Copy link
Copy Markdown
Member

It looks like part of your PR was removed by mistake. I thought the new test in test_capi.test_misc would still be there.

@neoneneneonene changed the title gh-117398: Add C-API test for datetime static type checkgh-117398: Add datetime C-API type check test for subinterpretersMay 29, 2024

@ericsnowcurrentlyericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for moving that test! There's just one thing to address and then this PR should be ready to merge. Thanks for your patience.

Comment threadLib/test/support/__init__.py Outdated
@bedevere-app

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@neonene

Copy link
Copy Markdown
ContributorAuthor

I have made the requested changes; please review again.

@bedevere-app

Copy link
Copy Markdown

Thanks for making the requested changes!

@ericsnowcurrently: please review the changes made to this pull request.

Comment threadLib/test/datetimetester.py

@ericsnowcurrentlyericsnowcurrently left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@miss-islington-app

Copy link
Copy Markdown

Thanks @neonene for the PR, and @ericsnowcurrently for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 13, 2024
…rs (pythongh-119604)
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
(cherry picked from commit 50a3895)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
@bedevere-app

Copy link
Copy Markdown

GH-120463 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jun 13, 2024
@ericsnowcurrently

Copy link
Copy Markdown
Member

Thanks again for all your work on this, @neonene!

@neonene
neonene deleted the capi_type_check branch June 13, 2024 18:10
ericsnowcurrently pushed a commit that referenced this pull request Jun 13, 2024
…ers (gh-120463)
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
(cherry picked from commit 50a3895, AKA gh-119604)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
…rs (pythongh-119604)
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…rs (pythongh-119604)
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…rs (pythongh-119604)
Check if the DateTime C-API type matches the datetime.date type on main and shared/isolated subinterpreters.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@neonene@ericsnowcurrently@encukou