Skip to content
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

[3.12] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554) #131629

Merged
merged 1 commit into from
Mar 23, 2025

Conversation

nybblista
Copy link
Contributor

@nybblista nybblista commented Mar 23, 2025

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)

…ytearray (python#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)
@sobolevn sobolevn enabled auto-merge (squash) March 23, 2025 17:33
@sobolevn sobolevn merged commit 7f2de07 into python:3.12 Mar 23, 2025
32 checks passed
@nybblista nybblista deleted the backport-f3bf304-3.12 branch March 23, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants