Skip to content

Commit a096813

Browse files
encukoustefanor
authored andcommitted
Expose _Py_STACK_GROWS_DOWN to tests
1 parent 7fec939 commit a096813

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Modules/_testcapimodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3324,6 +3324,10 @@ _testcapi_exec(PyObject *m)
33243324
PyModule_AddObject(m, "INT64_MAX", PyLong_FromInt64(INT64_MAX));
33253325
PyModule_AddObject(m, "UINT64_MAX", PyLong_FromUInt64(UINT64_MAX));
33263326

3327+
if (PyModule_AddIntMacro(m, _Py_STACK_GROWS_DOWN)) {
3328+
return -1;
3329+
}
3330+
33273331
if (PyModule_AddIntMacro(m, Py_single_input)) {
33283332
return -1;
33293333
}

0 commit comments

Comments
 (0)