New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

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 #9828) and bpo-23867.

----------
components: Argument Clinic, Tests
messages: 332493
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Add test for Argument Clinic converters
type: enhancement
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35578>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to