Skip to content

Commit cc8b006

Browse files
gh-96678: Avoid undefined behaviour in test (GH-96672) (#96795)
(cherry picked from commit 6ba686d) Co-authored-by: Matthias Görgens <[email protected]> Co-authored-by: Matthias Görgens <[email protected]>
1 parent f2d7fa8 commit cc8b006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Programs/_testembed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ static int test_init_is_python_build(void)
15811581
config._is_python_build = INT_MAX;
15821582
env = getenv("NEGATIVE_ISPYTHONBUILD");
15831583
if (env && strcmp(env, "0") != 0) {
1584-
config._is_python_build++;
1584+
config._is_python_build = INT_MIN;
15851585
}
15861586
init_from_config_clear(&config);
15871587
Py_Finalize();

0 commit comments

Comments
 (0)