]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179)...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Aug 2023 12:29:08 +0000 (15:29 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 12:29:08 +0000 (14:29 +0200)
commit9c8dfcec645b233dd6f36c286a7c5525c5d713e2
tree2a0705468eac7a39b7ef30e903b2a14dc7b755e2
parent72534ca85c64d4d33a9cf30492e037be05140fd2
[3.12] gh-107178: Add the C API tests for the Abstract Objects Layer (GH-107179) (#107728)

Cover all the Mapping Protocol, almost all the Sequence Protocol
(except PySequence_Fast) and a part of the Object Protocol.

Move existing tests to Lib/test/test_capi/test_abstract.py and
Modules/_testcapi/abstract.c.

Add also tests for PyDict C API..
(cherry picked from commit 16c9415fba4972743f1944ebc44946e475e68bc4)
13 files changed:
Lib/test/test_bytes.py
Lib/test/test_capi/test_abstract.py [new file with mode: 0644]
Lib/test/test_capi/test_dict.py [new file with mode: 0644]
Lib/test/test_capi/test_misc.py
Lib/test/test_class.py
Misc/NEWS.d/next/Tests/2023-07-24-16-56-59.gh-issue-107178.Gq1usE.rst [new file with mode: 0644]
Modules/Setup.stdlib.in
Modules/_testcapi/abstract.c [new file with mode: 0644]
Modules/_testcapi/dict.c [new file with mode: 0644]
Modules/_testcapi/parts.h
Modules/_testcapimodule.c
PCbuild/_testcapi.vcxproj
PCbuild/_testcapi.vcxproj.filters