mirror of https://github.com/python/cpython
gh-96678: Avoid undefined behaviour in test (#96672)
This commit is contained in:
parent
830a20eb32
commit
6ba686d97f
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue