cpython
cpython copied to clipboard
Functional tests for argument clinic
Currently there are no functional tests for argument clinic and the present tests mostly verify generated code not the runtime behavior. This can lead to bugs like https://github.com/python/cpython/pull/32092 so adding tests would help avoid such bugs.
A new module with functions using all function signatures can be created which will return the tuple of the args so that testing it would be easy.