[issue47132] Move tests from setobject.c to _testcapimodule
Oleg Iarygin
report at bugs.python.org
Sat Mar 26 15:16:33 EDT 2022
New submission from Oleg Iarygin <oleg at 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 <report at bugs.python.org>
<https://bugs.python.org/issue47132>
_______________________________________
More information about the Python-bugs-list
mailing list