-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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 PyMapping_HasKeyString
and PyMapping_HasKey
#98486
Conversation
sobolevn
commented
Oct 20, 2022
•
edited by bedevere-bot
edited by bedevere-bot
- Issue: Metabug: Improving C-level coverage #94808
@@ -4690,6 +4690,40 @@ get_mapping_items(PyObject* self, PyObject *obj) | |||
return PyMapping_Items(obj); | |||
} | |||
|
|||
static PyObject * | |||
test_mapping_has_key_string(PyObject *self, PyObject *Py_UNUSED(args)) |
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.
Don't we need to call this function from test_capi.py
? Or is that automatic?
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.
It is:
Lines 1185 to 1189 in 964a92c
class Test_testcapi(unittest.TestCase): | |
locals().update((name, getattr(_testcapi, name)) | |
for name in dir(_testcapi) | |
if name.startswith('test_') and not name.endswith('_code')) | |
Thanks @sobolevn for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-98698 is a backport of this pull request to the 3.11 branch. |
…pythonGH-98486) (cherry picked from commit 5d30544) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-98699 is a backport of this pull request to the 3.10 branch. |
…pythonGH-98486) (cherry picked from commit 5d30544) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>