summaryrefslogtreecommitdiffstats
path: root/Programs/_testembed.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-05-12 21:59:25 (GMT)
committerGitHub <noreply@github.com>2021-05-12 21:59:25 (GMT)
commit6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d (patch)
tree096a9091641c61c9c45ce91ce2daa0c7eff8c121 /Programs/_testembed.c
parent504ffdae4e0cb7775f3e584c3b1d20c262fdfd7e (diff)
downloadcpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.zip
cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.tar.gz
cpython-6cd0446ef72c6676b292d7f54b1ddb8ae5e1fb8d.tar.bz2
bpo-44113: Deprecate old functions to config Python init (GH-26060)
Deprecate the following functions to configure the Python initialization: * PySys_AddWarnOption() * PySys_AddWarnOptionUnicode() * PySys_AddXOption() * PySys_HasWarnOptions() * Py_SetPath() * Py_SetProgramName() * Py_SetPythonHome() * Py_SetStandardStreamEncoding() * _Py_SetProgramFullPath() Use the new PyConfig API of the Python Initialization Configuration instead (PEP 587).
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r--Programs/_testembed.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 0901933..21b24f7 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -22,6 +22,11 @@
/* Use path starting with "./" avoids a search along the PATH */
#define PROGRAM_NAME L"./_testembed"
+// Ignore Py_DEPRECATED() compiler warnings: deprecated functions are
+// tested on purpose here.
+_Py_COMP_DIAG_PUSH
+_Py_COMP_DIAG_IGNORE_DEPR_DECLS
+
static void _testembed_Py_Initialize(void)
{
Py_SetProgramName(PROGRAM_NAME);