-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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: Cover PyOS_mystrnicmp
and PyOS_mystricmp
#102469
Conversation
artemmukhin
commented
Mar 6, 2023
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Metabug: Improving C-level coverage #94808
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
I'm not sure who is best positioned to review this, but maybe @corona10 could take a look? |
Okay, I will take a look by this weekend :) |
@corona10 Thank you! |
There was a problem hiding this 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 separate the file into Modules/_testcapi/pyos.c
likewise https://github.com/python/cpython/blob/main/Modules/_testcapi/float.c ?
The test itself looks good.
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. @corona10 Thank you for the review! I've separated the tests. Although I haven't managed to run the tests from |
Thanks for making the requested changes! @corona10: please review the changes made to this pull request. |
I've found out that the tests were not executed because of the wrong naming.
cpython/Lib/test/test_capi/test_misc.py Lines 1422 to 1425 in ced13c9
It is mentioned in the C API Tests paragraph to some extent:
But at first reading, I got confused because in cpython/Modules/_testcapi/float.c Lines 84 to 88 in 534660f
However, in contrast to my tests, these test methods are actually executed through cpython/Lib/test/test_float.py Lines 1516 to 1519 in 534660f
I hope this investigation might help other first-time contributors. @corona10 If you think it would be helpful to clarify this point in the devguide, please let me know, and I'll be happy to open a corresponding PR. |
AFAIK, those things are intended. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
But I want to listen to the opinion of @erlend-aasland for this testing structure.
@erlend-aasland could you please take a look? |
Thank you! Cc @corona10 |