-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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-104469 Convert_testcapi/vectorcall.c to use AC #106557
Conversation
littlebutt
commented
Jul 9, 2023
- issue: Improve the readability and maintainability of test_capi using the AC #104469
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
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.
I don't think that we need to convert test_
prefixed functions. They are executed as tests directly.
Well, I am okay with it. We already did. |
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.
First thing, method names are wrong.
Please change method names and then executing the make clinic
Modules/_testcapi/vectorcall.c
Outdated
@@ -25,18 +29,23 @@ fastcall_args(PyObject *args, PyObject ***stack, Py_ssize_t *nargs) | |||
return 0; | |||
} | |||
|
|||
/*[clinic input] | |||
_testcapi.test_pyobject_fastcalldict |
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.
_testcapi.test_pyobject_fastcalldict | |
_testcapi.pyobject_fastcalldict |
Modules/_testcapi/vectorcall.c
Outdated
@@ -52,17 +61,23 @@ test_pyobject_fastcalldict(PyObject *self, PyObject *args) | |||
return PyObject_VectorcallDict(func, stack, nargs, kwargs); | |||
} | |||
|
|||
/*[clinic input] | |||
_testcapi.test_pyobject_vectorcall |
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.
_testcapi.test_pyobject_vectorcall | |
_testcapi.pyvectorcall_call |
Modules/_testcapi/vectorcall.c
Outdated
_testcapi.test_pyobject_vectorcall | ||
func: object | ||
func_args: object | ||
kwnames: object = NULL |
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.
kwnames: object = NULL | |
kwnames: object = None |
Modules/_testcapi/vectorcall.c
Outdated
@@ -103,17 +118,19 @@ function_setvectorcall(PyObject *self, PyObject *func) | |||
Py_RETURN_NONE; | |||
} | |||
|
|||
/*[clinic input] | |||
_testcapi.test_pyvectorcall_call |
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.
_testcapi.test_pyvectorcall_call | |
_testcapi.pyvectorcall_call |
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 |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
@corona10 Thank you for your suggestions and I fixed these method names. But the complaints still exist because of missing arguments in test cases. |
According to CI, it looks not, did you rebuild the code? |
No, I didn't. I just ran |
Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
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