We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6059743 commit ed55c69Copy full SHA for ed55c69
Modules/_testcapi/code.c
@@ -92,7 +92,11 @@ test_code_extra(PyObject* self, PyObject *Py_UNUSED(callable))
92
goto finally;
93
}
94
assert ((uintptr_t)extra == 77);
95
-
+ // Revert to initial code extra value.
96
+ res = PyUnstable_Code_SetExtra(test_func_code, code_extra_index, NULL);
97
+ if (res < 0) {
98
+ goto finally;
99
+ }
100
result = Py_NewRef(Py_None);
101
finally:
102
Py_XDECREF(test_module);
0 commit comments