-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
gh-131357: Add a set of asserts to test.test_capi.test_bytearray #131554
Conversation
1. Assert empty bytearray object for PyByteArray_Check. 2. Assert empty bytearray object for PyByteArray_CheckExact. 3. Assert 0-size bytearray object for PyByteArray_Size. 4. Assert empty bytearray object for PyByteArray_AsString. 5. Assert concatenation of the bytearray object with itself for PyByteArray_Concat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Thanks @nybblista for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @nybblista for the PR, and @sobolevn for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, @nybblista and @sobolevn, I could not cleanly backport this to
|
pythonGH-131554) add a set of asserts to test.test_capi.test_bytearray 1. Assert empty bytearray object for PyByteArray_Check. 2. Assert empty bytearray object for PyByteArray_CheckExact. 3. Assert 0-size bytearray object for PyByteArray_Size. 4. Assert empty bytearray object for PyByteArray_AsString. 5. Assert concatenation of the bytearray object with itself for PyByteArray_Concat. (cherry picked from commit f3bf304) Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
GH-131601 is a backport of this pull request to the 3.13 branch. |
@nybblista can you please do a manual 3.12 backport? |
…ay (GH-131554) (#131601) gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554) add a set of asserts to test.test_capi.test_bytearray 1. Assert empty bytearray object for PyByteArray_Check. 2. Assert empty bytearray object for PyByteArray_CheckExact. 3. Assert 0-size bytearray object for PyByteArray_Size. 4. Assert empty bytearray object for PyByteArray_AsString. 5. Assert concatenation of the bytearray object with itself for PyByteArray_Concat. (cherry picked from commit f3bf304) Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
|
GH-131629 is a backport of this pull request to the 3.12 branch. |
…ay (GH-131554) (#131629) [3.12] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (#131554) add a set of asserts to test.test_capi.test_bytearray 1. Assert empty bytearray object for PyByteArray_Check. 2. Assert empty bytearray object for PyByteArray_CheckExact. 3. Assert 0-size bytearray object for PyByteArray_Size. 4. Assert empty bytearray object for PyByteArray_AsString. 5. Assert concatenation of the bytearray object with itself for PyByteArray_Concat. (cherry picked from commit f3bf304)
PyByteArray_Check
.PyByteArray_CheckExact
.PyByteArray_Size
.PyByteArray_AsString
.PyByteArray_Concat
.capi
tests #131357