mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-125174: Make immortal objects more robust, following design from PEP 683 (GH-125251)
This commit is contained in:
parent
01fc3b34cc
commit
c9014374c5
17 changed files with 61 additions and 72 deletions
|
@ -2574,9 +2574,9 @@ class ShutdownTest(unittest.TestCase):
|
|||
class ImmortalTests(unittest.TestCase):
|
||||
|
||||
if sys.maxsize < (1 << 32):
|
||||
IMMORTAL_REFCOUNT = (1 << 30) - 1
|
||||
IMMORTAL_REFCOUNT = 3 << 29
|
||||
else:
|
||||
IMMORTAL_REFCOUNT = (1 << 32) - 1
|
||||
IMMORTAL_REFCOUNT = 3 << 30
|
||||
|
||||
IMMORTALS = (None, True, False, Ellipsis, NotImplemented, *range(-5, 257))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue