-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Improve CAPI tests of set
and frozenset
#110525
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
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
tests
Tests in the Lib/test dir
topic-C-API
type-feature
A feature request or enhancement
Comments
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 8, 2023
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 8, 2023
serhiy-storchaka
pushed a commit
that referenced
this issue
Oct 9, 2023
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 9, 2023
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 9, 2023
…ythonGH-110526). (cherry picked from commit c49edd7) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
serhiy-storchaka
pushed a commit
that referenced
this issue
Oct 9, 2023
serhiy-storchaka
pushed a commit
that referenced
this issue
Oct 9, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Oct 9, 2023
…ythonGH-110544) (cherry picked from commit ea39c87) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
serhiy-storchaka
pushed a commit
that referenced
this issue
Oct 9, 2023
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 10, 2023
serhiy-storchaka
pushed a commit
that referenced
this issue
Oct 10, 2023
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Oct 11, 2023
vstinner
pushed a commit
that referenced
this issue
Oct 13, 2023
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Glyphack
pushed a commit
to Glyphack/cpython
that referenced
this issue
Sep 2, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
tests
Tests in the Lib/test dir
topic-C-API
type-feature
A feature request or enhancement
Feature or enhancement
Right now CAPI tests of
set
andfrozenset
are quite outdated. They are defined as.test_c_api
method onset
objects, whenPy_DEBUG
is set:cpython/Objects/setobject.c
Lines 2371 to 2511 in 7e30821
There are several things that I can see as problematic:
PySet_Check
), internal CAPI (_PySet_Update
), and internal function calls (set_clear_internal
)cpython/Lib/test/test_set.py
Lines 638 to 641 in 7e30821
set
andfrozenset
subclassesassert
I propose a plan to improve it:
Modules/_testcapi/set.c
and addLib/test/test_capi/test_set.py
Modules/_testinternalcapi/set.c
and make sure that they are executed intest_capi.py
test_c_api
fromsetobject.c
I plan to work on this and already have the PR for
1.
:)Linked PRs
set
andfrozenset
objects #110526PySet_Add
corner case withfrozenset
objects #110544set
CAPI #110630test_c_api
method fromset
object #110688The text was updated successfully, but these errors were encountered: