]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Jan 2019 07:40:09 +0000 (23:40 -0800)
committerGitHub <noreply@github.com>
Sat, 12 Jan 2019 07:40:09 +0000 (23:40 -0800)
commitd39c19255910b9dce08c595f511597e98b09e91f
tree143d8ea12e92c3fb56e8864d08381d42a4e72f9f
parent059997d78ed1a1a5a364b1846ac972c98c704927
bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)

Add also tests for PyUnicode_FromFormat() and PyBytes_FromFormat()
with empty result.
(cherry picked from commit 44cc4822bb3799858201e61294c5863f93ec12e2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_bytes.py
Lib/test/test_unicode.py
Misc/NEWS.d/next/C API/2019-01-11-11-16-16.bpo-33817.nJ4yIj.rst [new file with mode: 0644]
Objects/bytesobject.c