FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-96678: Avoid undefined behaviour in test (GH-96672) (#96795) · python/cpython@cc8b006 · GitHub

/ cpython Public

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 <matthias.goergens@gmail.com> Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
1 parent f2d7fa8 commit cc8b006

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL