]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-143672: Add more tests for struct.pack_into() (GH-143901) (GH-143903)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 16 Jan 2026 11:49:30 +0000 (12:49 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Jan 2026 11:49:30 +0000 (11:49 +0000)
commitd7f11ea0548c255aec83473538d02b454802dce9
tree3e3ed248cd7fd0ada2ffcd1594404e66868bc168
parentaa5ad5059753270caa052d4480d6489ca1e15ca9
[3.13] gh-143672: Add more tests for struct.pack_into() (GH-143901) (GH-143903)

Add tests for negative offset, out of bound offset, invalid type of offset,
non-writeable buffer, non-continuous buffer, invalid type of buffer.

Repeat all tests for struct.Struct.pack_into().
(cherry picked from commit 66680f1230e51b8274279964f8d2278d12285eb3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_struct.py