]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-143672: Add more tests for struct.pack_into() (GH-143901) (GH-143902)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 16 Jan 2026 11:52:57 +0000 (12:52 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Jan 2026 11:52:57 +0000 (11:52 +0000)
commit8c250cf65fd7fe5b18b13b43a8c28afb9929ea6c
treee24d4133b204444a9256284657aa64c4f72b7a7a
parent1241432150f6342e3d38c5a80a19c8c157a4ebe8
[3.14] gh-143672: Add more tests for struct.pack_into() (GH-143901) (GH-143902)

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