-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-131441: Add a set of asserts to test.test_capi.test_list #131442
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
Conversation
1. Assert 0-sized list for PyList_Size() 2. Assert 0-sized list for PyList_GET_SIZE() 3. Assert reverse of reverse for PyList_Reverse() 4. Assert a list that contains one empty-list element for PyList_AsTuple()
Nice enhancement. |
@sobolevn Needs backport? |
Thanks @nybblista for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @nybblista for the PR, and @iritkatriel for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
…thonGH-131442) (cherry picked from commit 2433cc7) Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
GH-131523 is a backport of this pull request to the 3.13 branch. |
Sorry, @nybblista and @iritkatriel, I could not cleanly backport this to
|
Yes, because we usually backport test changes |
|
@nybblista can you please create a manual 3.12 backport? |
@sobolevn GH-131533 |
GH-131533 is a backport of this pull request to the 3.12 branch. |
PyList_Size()
.PyList_GET_SIZE()
.PyList_Reverse()
.PyList_AsTuple()
.