summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2024-12-11 17:37:38 (GMT)
committerGitHub <noreply@github.com>2024-12-11 17:37:38 (GMT)
commitbc262de06b10a2d119c28bac75060bf00301697a (patch)
treeee2cd2b91e8c9d91aa3b2287b7c59db0097a10ec /Lib/test/test_builtin.py
parentdd9da738ad1d420fabafaded3fe63912b2b17cfb (diff)
downloadcpython-bc262de06b10a2d119c28bac75060bf00301697a.zip
cpython-bc262de06b10a2d119c28bac75060bf00301697a.tar.gz
cpython-bc262de06b10a2d119c28bac75060bf00301697a.tar.bz2
GH-125174: Mark objects as statically allocated. (#127797)
* Set a bit in the unused part of the refcount on 64 bit machines and the free-threaded build. * Use the top of the refcount range on 32 bit machines
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index e51711d..06df217 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -2691,7 +2691,7 @@ class ShutdownTest(unittest.TestCase):
class ImmortalTests(unittest.TestCase):
if sys.maxsize < (1 << 32):
- IMMORTAL_REFCOUNT = 3 << 29
+ IMMORTAL_REFCOUNT = 7 << 28
else:
IMMORTAL_REFCOUNT = 3 << 30