[3.12] gh-125783: Add tests to prevent regressions with the combination of `ctypes` and metaclasses. (GH-125881) (GH-125988)
cherry picked from commit
13844094609cf8265a2eed023e33c7002f3f530d
by Jun Komoda
Also: Add test_ctypes/_support.py from 3.13+
This partially backports
be89ee5649031e08f191bf596fa20a09c5698079
(https://github.com/python/cpython/pull/113727)
by AN Long
Co-authored-by: Jun Komoda <45822440+junkmd@users.noreply.github.com>
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>