gh-135906: Test the internal C API in test_cext (#136247)

Remove duplicated definition: atexit_datacallbackfunc type
is already defined by Include/cpython/pylifecycle.h.
This commit is contained in:
Victor Stinner 2025-07-11 16:48:43 +02:00 committed by GitHub
parent cbf007beeb
commit 2c9a8011c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 103 additions and 36 deletions

View file

@ -6,8 +6,17 @@
// Always enable assertions
#undef NDEBUG
#ifdef TEST_INTERNAL_C_API
# define Py_BUILD_CORE 1
#endif
#include "Python.h"
#ifdef TEST_INTERNAL_C_API
// gh-135906: Check for compiler warnings in the internal C API
# include "internal/pycore_frame.h"
#endif
#ifndef MODULE_NAME
# error "MODULE_NAME macro must be defined"
#endif