You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Argument Clinic converters are tested by running Argument Clinic on the CPython source tree. If it generates incorrect code, then it contains bugs. But not all combinations of standard converters and options are used in the stdlib.
The programming interface of Argument Clinic is complex, and it is hard to write tests for testing only specific functionality. The simplest way of testing Argument Clinic is to write a C file containing declarations and generated code for all test cases. Although this does not allow to test error cases.
New changeset 837c7dc by Serhiy Storchaka in branch 'master': bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306) 837c7dc
New changeset 74d914e by Serhiy Storchaka in branch '3.7':
[3.7] bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306) (GH-11311) 74d914e
Activity
serhiy-storchaka commentedon Dec 24, 2018
Currently Argument Clinic converters are tested by running Argument Clinic on the CPython source tree. If it generates incorrect code, then it contains bugs. But not all combinations of standard converters and options are used in the stdlib.
The programming interface of Argument Clinic is complex, and it is hard to write tests for testing only specific functionality. The simplest way of testing Argument Clinic is to write a C file containing declarations and generated code for all test cases. Although this does not allow to test error cases.
The proposed PR adds Lib/test/clinic_test.c which contains tests for all standard converters. It will be extended in bpo-20180 (PR bpo-9828) and bpo-23867.
serhiy-storchaka commentedon Dec 25, 2018
New changeset 837c7dc by Serhiy Storchaka in branch 'master':
bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306)
837c7dc
serhiy-storchaka commentedon Dec 25, 2018
New changeset 74d914e by Serhiy Storchaka in branch '3.7':
[3.7] bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306) (GH-11311)
74d914e
pablogsal commentedon Dec 29, 2018
Is there anything left in this issue or we can close it?
erlend-aasland commentedon May 1, 2023
Tests for clinic converters were significantly improved in gh-96178. We can close this now.