New submission from Oleg Iarygin <o...@arhadthedev.net>:
Currently, tests for PySet/PyFrozenSet C API are defined in Objects/setobject.c and available via set.test_c_api(). Moving them to, for example, _testcapimodule gives the following advantanges: - an internal, CPython-specific method stops being available in a public interface of the set class - CPython already has tests grouped into dedicated packages - the target package undefines NDEBUG thus making asserts available in release builds - a user may choose to omit the tests from a build not carrying them around - a file of 2.5k lines of codes becomes 152 lines smaller. ---------- components: C API, Tests messages: 416083 nosy: arhadthedev priority: normal severity: normal status: open title: Move tests from setobject.c to _testcapimodule type: enhancement versions: Python 3.11 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue47132> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com