summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-06-08 18:18:08 (GMT)
committerGitHub <noreply@github.com>2022-06-08 18:18:08 (GMT)
commit5442561c1a094b68900198bade616da9ed509ac8 (patch)
treebaa10e0216d4e5ffadc32624b9c7acac23e14807 /Misc
parent2dece908085e719d2345ea80ea174fa6a4473851 (diff)
downloadcpython-5442561c1a094b68900198bade616da9ed509ac8.zip
cpython-5442561c1a094b68900198bade616da9ed509ac8.tar.gz
cpython-5442561c1a094b68900198bade616da9ed509ac8.tar.bz2
gh-93575: Use correct way to calculate PyUnicode struct sizes (GH-93602)
* 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
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2022-06-08-14-17-59.gh-issue-93575.Xb2LNB.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2022-06-08-14-17-59.gh-issue-93575.Xb2LNB.rst b/Misc/NEWS.d/next/Tests/2022-06-08-14-17-59.gh-issue-93575.Xb2LNB.rst
new file mode 100644
index 0000000..98d1532
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2022-06-08-14-17-59.gh-issue-93575.Xb2LNB.rst
@@ -0,0 +1,4 @@
+Fix issue with test_unicode test_raiseMemError. The test case now use
+``test.support.calcobjsize`` to calculate size of PyUnicode structs.
+:func:`sys.getsizeof` may return different size when string has UTF-8
+memory.