Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reword
  • Loading branch information
neonene committed Jun 13, 2022
commit 4f08be90b16f5d4c255a053bdf8b6f2a2ac35d45
4 changes: 2 additions & 2 deletions Lib/test/test_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -1334,12 +1334,12 @@ def test_init_is_python_build_win32(self):
}
env = {'TESTHOME': home, 'PYTHONPATH': paths_str}

env['INVALID_ISPYTHONBUILD'] = '1'
env['NEGATIVE_ISPYTHONBUILD'] = '1'
config['_is_python_build'] = 0
self.check_all_configs("test_init_is_python_build", config,
api=API_COMPAT, env=env)

env['INVALID_ISPYTHONBUILD'] = '0'
env['NEGATIVE_ISPYTHONBUILD'] = '0'
config['_is_python_build'] = 1
config['module_search_paths'][-1] = os.path.dirname(self.test_exe)
self.check_all_configs("test_init_is_python_build", config,
Expand Down
4 changes: 2 additions & 2 deletions Programs/_testembed.c
Original file line number Diff line number Diff line change
Expand Up @@ -1572,12 +1572,12 @@ static int test_init_is_python_build(void)
putenv("TESTHOME=");

config._is_python_build = INT_MAX;
env = getenv("INVALID_ISPYTHONBUILD");
env = getenv("NEGATIVE_ISPYTHONBUILD");
if (env) {
if (strcmp(env, "1") == 0) {
config._is_python_build++;
}
putenv("INVALID_ISPYTHONBUILD=");
putenv("NEGATIVE_ISPYTHONBUILD=");
}
init_from_config_clear(&config);
Py_Finalize();
Expand Down