]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (GH-131554...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 23 Mar 2025 07:44:47 +0000 (08:44 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Mar 2025 07:44:47 +0000 (10:44 +0300)
commit856bb5423556552927dfd5b63440d863f2ce6b97
treeb1861bcfca4e4fb339fddd9bc9723874e5bc7c2e
parenteedaa4eefb5994207be99c6c9f280a75b4ebf39e
[3.13] gh-131357: Add a set of asserts to test.test_capi.test_bytearray (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 f3bf304c2799c31c045033f22db7eb8766a5f939)

Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
Lib/test/test_capi/test_bytearray.py