Open
Description
Modules/_testcapimodule.c
is a nearly-8000-line behemoth with no clear structure or organization. It is getting hard to maintain.
It also doesn't work well with testing (a) feature macros that affect Python.h
and (b) module initialization, so we have additional C-API testing modules: _testmultiphase
, _testimportmultiple
, _testinternalcapi
.
_testbuffer
is already split out, but there are many other aspects of the API that would use a similar dedicated test suite.
We should split and combine these, ideally without polluting the namespace of top-level modules.