summaryrefslogtreecommitdiff
path: root/Lib/test/test_buffer.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-12-23 00:55:55 -0800
committerGitHub <noreply@github.com>2022-12-23 08:55:55 +0000
commit95c55a69b3935e36108059ea89efd372d0902c6e (patch)
treec3f6a0985ce1e6d2458da472ca28da3c8eebf5da /Lib/test/test_buffer.py
parent86cdfaa885eedefe3a33fccc0bbccd0b6a388260 (diff)
downloadcpython-git-95c55a69b3935e36108059ea89efd372d0902c6e.tar.gz
[3.10] gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) (#100451)
gh-76963: PEP3118 itemsize of an empty ctypes array should not be 0 (GH-5576) The itemsize returned in a memoryview of a ctypes array is now computed from the item type, instead of dividing the total size by the length and assuming that the length is not zero. (cherry picked from commit 84bc6a4f25fcf467813ee12b74118f7b1b54e285) Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Diffstat (limited to 'Lib/test/test_buffer.py')
0 files changed, 0 insertions, 0 deletions