]> granicus.if.org Git - python/commit
bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 12 Jan 2019 07:22:29 +0000 (09:22 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Jan 2019 07:22:29 +0000 (09:22 +0200)
commit44cc4822bb3799858201e61294c5863f93ec12e2
treef7d25e8a7403e81d86893c8a2f7f5402297bd903
parentd0d3e99120b19a4b800f0f381b2807c93aeecf0e
bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)

Add also tests for PyUnicode_FromFormat() and PyBytes_FromFormat()
with empty result.
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