-
-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the C API tests for Mapping Protocol and Sequence Protocol #107178
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
tests
Tests in the Lib/test dir
topic-C-API
Comments
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Jul 24, 2023
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.
serhiy-storchaka
added
tests
Tests in the Lib/test dir
topic-C-API
3.11
only security fixes
3.12
bugs and security fixes
3.13
bugs and security fixes
and removed
type-feature
A feature request or enhancement
labels
Jul 24, 2023
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Aug 7, 2023
…Layer (pythonGH-107179) 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 16c9415) Co-authored-by: Serhiy Storchaka <[email protected]>
Yhg1s
pushed a commit
that referenced
this issue
Aug 16, 2023
…H-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 16c9415)
vstinner
added a commit
to vstinner/cpython
that referenced
this issue
Aug 24, 2023
The new _testcapi.test_dict tests are more complete, _testcapi.test_dict_capi() became redundant.
vstinner
added a commit
that referenced
this issue
Aug 24, 2023
The new _testcapi.test_dict tests are more complete, _testcapi.test_dict_capi() became redundant.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.12
bugs and security fixes
3.13
bugs and security fixes
tests
Tests in the Lib/test dir
topic-C-API
Currently only few functions in these protocols are covered by tests:
PyMapping_Keys
,PyMapping_Values
,PyMapping_Items
,PyMapping_HasKey
,PyMapping_HasKeyString
,PySequence_SetSlice
,PySequence_DelSlice
. Since we just added few new functions (PyMapping_GetOptionalItem
, etc) and are planning to deprecate other functions (PyMapping_HasKey
, etc), we need more tests.Linked PRs
The text was updated successfully, but these errors were encountered: