Skip to content

Commit 30aed72

Browse files
committed
Add assertion
1 parent ea59d12 commit 30aed72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/context.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,7 @@ PyStatus
13611361
_PyContext_Init(PyInterpreterState *interp)
13621362
{
13631363
PyObject *missing = get_token_missing();
1364+
assert(PyUnstable_IsImmortal(missing));
13641365
if (PyDict_SetItemString(
13651366
_PyType_GetDict(&PyContextToken_Type), "MISSING", missing))
13661367
{

0 commit comments

Comments
 (0)