summaryrefslogtreecommitdiffstats
path: root/Programs/_testembed.c
diff options
context:
space:
mode:
authorMatthias Görgens <matthias.goergens@gmail.com>2022-09-13 12:15:11 (GMT)
committerGitHub <noreply@github.com>2022-09-13 12:15:11 (GMT)
commit6ba686d97fd6d2a2169696c6629f7de9482f52db (patch)
treeeda7077350c1729d0d67c483476452b98996249c /Programs/_testembed.c
parent830a20eb3273a84a77eb2fc160cc10d9f8904275 (diff)
downloadcpython-6ba686d97fd6d2a2169696c6629f7de9482f52db.zip
cpython-6ba686d97fd6d2a2169696c6629f7de9482f52db.tar.gz
cpython-6ba686d97fd6d2a2169696c6629f7de9482f52db.tar.bz2
gh-96678: Avoid undefined behaviour in test (#96672)
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r--Programs/_testembed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index f844456..a2a2ff4 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -1581,7 +1581,7 @@ static int test_init_is_python_build(void)
config._is_python_build = INT_MAX;
env = getenv("NEGATIVE_ISPYTHONBUILD");
if (env && strcmp(env, "0") != 0) {
- config._is_python_build++;
+ config._is_python_build = INT_MIN;
}
init_from_config_clear(&config);
Py_Finalize();