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

gh-94808: Add coverage test for number check #111445

Merged
merged 5 commits into from
Oct 29, 2023
Merged

Conversation

ekohilas
Copy link
Contributor

Add coverage test for number check

gh-94808: Adds a coverage test for PyNumber_Check as part of #94808

Thanks to @corona10 for helping out!

@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Oct 29, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Oct 29, 2023

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@corona10 corona10 changed the title Add coverage test for number check gh-94808: Add coverage test for number check Oct 29, 2023
@corona10 corona10 self-assigned this Oct 29, 2023
Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

Would you like to extend the test to test float, and integer too?
And also for false tests for 'str' or something other types?
Looks like there is no explicit test for this API :)

ekohilas and others added 2 commits October 29, 2023 08:12
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
@@ -0,0 +1 @@
Add a C API test for the PyNumber_Check function.
Copy link
Member

@corona10 corona10 Oct 29, 2023

Choose a reason for hiding this comment

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

And please remove this file too :)

Co-authored-by: Donghee Na <donghee.na92@gmail.com>
Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

lgtm!

@corona10 corona10 enabled auto-merge (squash) October 29, 2023 06:41
@corona10 corona10 merged commit 842e5fc into python:main Oct 29, 2023
27 checks passed
iritkatriel pushed a commit to iritkatriel/cpython that referenced this pull request Oct 29, 2023
FullteaR pushed a commit to FullteaR/cpython that referenced this pull request Nov 3, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
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.

None yet

2 participants