]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602) ...
authorChristian Heimes <christian@python.org>
Wed, 8 Jun 2022 20:21:20 +0000 (22:21 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Jun 2022 20:21:20 +0000 (22:21 +0200)
commit47a7855f416affceb8d6b33f131f3f44457ac589
tree6f0f2cc5ee93fa52076d50dea58efe22ad0b387e
parent1b7942acb2cc31d65bba6be9be906433121d457e
[3.11] gh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602) (GH-93613)

* gh-93575: Use correct way to calculate PyUnicode struct sizes

* Add comment to keep test_sys and test_unicode in sync

* Fix case code < 256.
(cherry picked from commit 5442561c1a094b68900198bade616da9ed509ac8)

Co-authored-by: Christian Heimes <christian@python.org>
Lib/test/test_sys.py
Lib/test/test_unicode.py
Misc/NEWS.d/next/Tests/2022-06-08-14-17-59.gh-issue-93575.Xb2LNB.rst [new file with mode: 0644]